• Resolved vodstudio

    (@vodstudio)


    Hi Support,
    Is it able remove taxonomy base slug & using Post type base slug
    eg:
    Taxonomy: /area/term
    Post type: /property/postname

    Is it able make it
    domain.com.my/property/(area term) ?

    Please assist

    Thanks
    Chuah

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

    (@tw2113)

    The BenchPresser

    The biggest challenge you’re going to find here, and it’s not necessarily an easy one, is letting WordPress know what it’s supposed to query for with this structure. The URL is extremely important in that regard.

    In this example, you’re taking it from a /taxonomy/taxonomy-term/ query, which says “grab the next X posts that have the the term “taxonomy-term” from the “taxonomy” taxonomy to potentially:

    “Grab something with this term, and this post type”. I suspect WordPress is going to struggle with that one, especially since it’s very likely going to assume whatever “area term” is, is meant to be a single post slug, not a term of some sort.

    Also pretty much everything permalinks/rewrite rule customization is something that CPTUI doesn’t have active hands in, other than setting the query variable and/or rewrite slugs for the post types and taxonomies themselves, which is just a small part of the URL overall.

    Thread Starter vodstudio

    (@vodstudio)

    Hi Support,
    Is it taxonomy able having own archive page?

    I created an taxonomy ‘area’, and having page file taxonomy-area.php for it

    but it only able show like domain.com/area/term
    but when enter domain.com/area/ that page is 404 error

    Please assist

    Thanks

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not the way posts types do, where you visit the taxonomy slug and see posts. This is a detail down to WordPress core. It only offers an archive per term.

    I know I have a blog post over at https://pluginize.com/how-to-create-a-taxonomy-archive-in-wordpress/ that goes through some code-based steps to set up an archive like that, but it does involve an “all” term. The post outlines how to auto-assign that term for each post in the taxonomy and some other details.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Taxonomy base slug’ is closed to new replies.