• Hi,

    I’m creating a filter to sort my posts. I have one filter for “topics” and one for “Destinations”.

    I’m currently using custom taxonomy for that. One taxonomy for “topics” and one for “Destinations”. However, when I click on this category on my post, it bring me one .com/topics instead of using /category

    I kind of understand why, but is there a way to :

    1. Make that the taxonomy is redirected to category.php page?
    2. Instead of using custom taxonomy, use parent category to filter by child category?

    What would be better?
    You can see my test site here :

    Thank you

    • This topic was modified 3 years, 6 months ago by Nic727.
    • This topic was modified 3 years, 6 months ago by James Huff. Reason: link moved to proper field

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    If you simply removed category.php, archive.php will be used for all taxonomy requests. Or copy category.php into a new taxonomy-topics.php and another for destinations. Alternately, use the “template_include” filter to force your taxonomy requests to use category.php template.

    Yes, you could instead have topics and destinations be top level category terms and have a bunch of child terms under them. I don’t think this is any better or worse than separate taxonomies. One consideration would be which URL structure would you prefer? /category/destinations/place/ or /destinations/place/?

    An aside: While we think of a taxonomy as a collection of terms, so the taxonomy name logically becomes plural, in practice we generally refer to one term at a time; so to me at least, it makes more sense for taxonomy slugs to be singular. My taxonomy names are always singular form, but do what ever makes sense to you.

Viewing 1 replies (of 1 total)
  • The topic ‘How to get sub-category of a specific parent category for a list?’ is closed to new replies.