WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. radicalradical
    Member
    Posted 3 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?

    http://wordpress.org/extend/plugins/custom-post-permalinks/

  2. John P. Bloch
    Member
    Plugin Author

    Posted 3 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
    Member
    Posted 3 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