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

    (@tw2113)

    The BenchPresser

    I’m going to tentatively say yes you can get multiple taxonomy terms in the URL as a whole, but one thing to keep in mind is that the URL is what tells WordPress what to query for as well. So that may play a part in things. That could get interpreted as a parent/child hierarchy and return no results.

    At least based on a quick test, setting the taxonomy to be hierarchical and “rewrite hierarchical”, I was able to get a working archive permalink of “/genre/action/comedy/” with comedy being the child term of action, both in a “genre” taxonomy.

    Thread Starter vodstudio

    (@vodstudio)

    Hi Support,
    Before Both taxonomy setting for “hierarchical” and “rewrite hierarchical” already set to True
    https://ibb.co/my4wT7S
    https://ibb.co/T0NpTkP
    But i try enter both taxonomy slug combine is display 404 error page

    Anything coding or setting need to do?

    Please assist

    Thanks

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    It wouldn’t work between two taxonomies, it would between terms within the same taxonomy.

    This url: domain.com/property_type/area

    is assuming “area” is a term in the “property_type” taxonomy.

    For what it’s worth, visiting domain.com/property_type/ isn’t considered a valid archive by WordPress core, for a taxonomy like it is for post types. It needs a term specified to show an archive and it’s for the one term.

    Thread Starter vodstudio

    (@vodstudio)

    Hi Support,
    is it means I need created property_type & area as 1 taxonomy?
    Like below?
    Type 1
    – area 1
    – area 2
    – area 2-1
    – area 2-1
    – area 3
    Type 2
    – area 1
    – area 2
    – area 2-1
    – area 2-1
    – area 3

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Basically instead of making multiple taxonomies, make a single taxonomy and work with the terms in that taxonomy, if you are wanting that URL structure. If you for sure know you need these property types and areas to be separate taxonomies with their own isolated terms in each, then I’m not sure how to go about getting the URL structure you’re wanting. CPTUI itself doesn’t offer any functionality or settings for customizing permalinks like this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘URL Combine Taxonomy’ is closed to new replies.