Problem with CPT and taxonomies
I’m having some problems with a custom template I’m doing.
First of all, I have a page called “restaurants” this page displays custom taxonomies which are linked to the custom page called restaurants.(domain.com/restaurants) (the restaurants page has it’s own template, it’s different then the home for example)
Whenever I click on a custom taxonomy, for example “City name” it redirects to “domain.com/restaurants/city-name“. The redirecting is what I want, (url wise) But the page template is not correct. It shows up in the “main” template. The content seems to be correct. I would like this page to use the same template as the ‘restaurants’ template.
How can I achieve this?
– I have already tried archive-[CPT-name}.php
– I have also tried taxonomy-[taxonomy-name].php
I am really in need of help I’m reading everything but I cannot seem to solve this..
- The topic ‘Problem with CPT and taxonomies’ is closed to new replies.