WordPress.org

Ready to get started?Download WordPress

Forums

Problem with CPT and taxonomies (1 post)

  1. ekar12
    Member
    Posted 1 year ago #

    Hello,

    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..

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Topic