Forums

How do I make a conditional to check if "parent category is... (2 posts)

  1. bentalgad
    Member
    Posted 5 months ago #

    i want to make wordpress use a specific template
    for all sub-categories in a specific category.

    i think it can be done with a conditional that
    that says: if parent category is...
    then use this template...

    does is one know if there is a way to do that?

    thank's

  2. esmi
    Member
    Posted 5 months ago #

    Maybe run a check on get_category_parents ?

Reply

You must log in to post.

About this Topic