• Resolved besweeet

    (@besweeet)


    Post type slug: updates
    Taxonomy slug: updates_category

    Post type permalink: /updates/post_slug/
    Taxonomy slug: /updates_category/category_slug/

    What I’d like is for the taxonomy slug to follow the same one as the post type, so:
    /updates/category_slug/

    Is Pods able to do this natively without Permalink Manager Pro? I tried several combinations of settings and either the post will work (and category will show not found) OR the category will work and the post is not found…

Viewing 1 replies (of 1 total)
  • Plugin Support Paul Clark

    (@pdclark)

    This won’t work because WordPress core permalinks are matched by going through an array of regex patterns and selecting the first regex that matches. If two types of content have the same pattern, the one with higher priority will always match.

    If Permalinks Manager Pro is able to do this, it is implementing some deep magic I am unaware of —?such a custom permalink matching function that checks both the post type and taxonomy for defined content before settings up the WP_Query.

    An example of implementing such a custom function without any additional plugins can be found at https://wordpress.stackexchange.com/a/358186

Viewing 1 replies (of 1 total)
  • The topic ‘Have taxonomy permalink follow post type permalink’ is closed to new replies.