Using the CPT slug in custom rewrites (1 post)

  1. Rebecca O'Brien
    Posted 2 years ago #

    I have this rewrite rule


    It uses the ID of the post type, rather than the post type slug. I've dug around and can't find a way around this.

    For example, for post type "Bar None" with the id "bar_none" and slug "bar-none".
    site.com/category/foo/feed/rss2/bar-none/ doesn't work
    site.com/category/foo/feed/rss2/bar_none/ does

    site.com/bar-none/ works
    site.com/bar_none/ doesn't

    So what intermediary step am I missing the get the slug to work in the rewrite URL?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.