• Resolved itsseanl

    (@itsseanl)


    I created a hierarchical taxonomy called County, and set up three parent taxonomies, each with a child taxonomy. When these are selected, they get appended to the permalink for the associated posts according to some redirect rules that I wrote so that I have specific urls that I can use to easily display filtered search results.

    My problem is that for literally just one of these child taxonomies, if I select both the parent and child, the permalink breaks, only showing the parent taxonomy in it. I can still manually navigate to the correct permalink, but the permalink given to the post will be incorrect when viewed from the admin panel or in search results, and give a 404 error when clicked.

    This is literally just happening for one specific child taxonomy. Every other parent/child taxonomy pair has no issues. I even tried creating a test taxonomy under the parent taxonomy of the broken child taxonomy, and that pair worked as well.

    I know this is kind of vague, but hopefully my explanation makes sense and someone can nudge me in the right direction on how to solve this! I don’t even know where to begin.

    I did check the tables associated with taxonomy in the database to see if I could find any duplicates, but didn’t find anything out of the ordinary. I don’t think it could be a problem with how I registered my post types or my taxonomy, because as mentioned it’s working for everything except one specific child taxonomy.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hard to say as I don’t really know any details about the code used to set this all up with regards to the rewriting of permalinks and whatnot. I’m willing to be wrong, but as is it sounds like there’s not a huge amount that CPTUI is doing other than just the initial registration, plus you’ve noted that it’s working for *most* of it.

    Any chance you could share the custom coding part you’ve typed up to help with your usecase? Also an idea of the various parent/children terms in this “County” taxonomy would help, especially the one(s) that isn’t working.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Any changes or new developments here with this @itsseanl ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Rewrite rules not working for one specific child taxonomy’ is closed to new replies.