• I created a taxonomy “wdvdocscat” for a custom post type “wdvdocs”:
    register_taxonomy('wdvdocscat', ['wdvdocs'], array(...), ...
    It seems to work – there is a page where you can create categories for the “wdvdocs” custom post type, and when creating posts with the “wdvdocs” custom post type, there is this list of categories.
    I created 2 categories : “documents” and “plugins” in this taxonomy.
    Now I want to show a page with “documents” and a page with “plugins” (archive page).
    I created a taxonomy-wdvdocscat.php template.
    What should be the link to show the “documents” page and the “plugins” page?
    I tried:
    mysite.com/taxonomy/wdvdocscat/plugins – loading template “404.php”
    mysite.com/wdvdocscat/plugins – loading template for custom post type “wdvdocs” for single page
    mysite.com/taxonomy/plugins – loading template “404.php”
    Template “taxonomy-wdvdocscat.php” not used. What should be the link to show the “documents” page and the “plugins” page with this template?

    • This topic was modified 2 years, 10 months ago by vrpr.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You might need to flush the permalinks on the site. Visit the permalinks page and save them again. (You shouldn’t need to change any options. Just saving them should suffice.)

    Thread Starter vrpr

    (@vrpr)

    I did it many timer.

    Try not using ‘plugin(s)’ as the tax or term?

    https://www.ads-software.com/support/article/glossary/#plugin

    Try example: MY_plugin.

    Thread Starter vrpr

    (@vrpr)

    Thanks for your answer. But if I use other words how the tax or term – I get the same result.
    Which link is correct:
    mysite.com/taxonomy/wdvdocscat/books
    mysite.com/wdvdocscat/books
    mysite.com/taxonomy/books
    For some reason, I can find on the Internet how to create a taxonomy, what the taxonomy template should be called, but I can’t find how the link should look like.
    My taxonomy – it is taxonomy for custom post type, maybe name for this custom post type must be in link too?

    • This reply was modified 2 years, 10 months ago by vrpr.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Link to taxonomy’ is closed to new replies.