Not able to use Post ID in Permalink

Support General Not able to use Post ID in Permalink

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15478
    brandonjpbrandonjp
    Participant

    When I change Permalink settings to use something like:

    http://app.com/%category%/%post_id%/

    It never uses the Post ID, and is always using the Post Title or %postname%

    I'm pretty sure this is because of how Custom Post Types work. But if anyone has a solid explanation, please educate me! 🙂 Thanks!

    #15498
    Anh TranAnh Tran
    Keymaster

    Hi,

    For custom post types, you have to write your own rewrite tags and make it works. In this case, you need 2 custom rewrite tags: %category% and %post_id%. See this answer for details:

    https://wordpress.stackexchange.com/questions/108642/permalinks-custom-post-type-custom-taxonomy-post

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.