Link to taxonomy
-
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?
- The topic ‘Link to taxonomy’ is closed to new replies.