Custom Post Permalinks
[resolved] Regarding Permalink Prefixes (3 posts)

  1. radicalradical
    Posted 5 years ago #

    Great Plugin. I was trying to write my own solution when I found this gem. I do have one issue and was wondering if your plugin can do it:

    The permalink structure is currently at /blog/%postname%/.

    So, the permalink for a post is /blog/my-post-name/. I have a custom post type called "listing" so the permalink structure for that is then /blog/listing/my-listing-name/

    I don't want the prefix "blog" to show up in my custom post type's permalink structure. I just want it to show up as /listing/my-listing-name/. Is this possible?


  2. John P. Bloch
    Plugin Author

    Posted 5 years ago #

    When you register the listings content type, make sure to set rewrite['with_front'] to false (it's true by default).

  3. radicalradical
    Posted 5 years ago #

    Doh! I knew I forgot something. Thanks very much

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic