Forums

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

  1. Begin
    Member
    Posted 2 years 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
    Theme Diva & Mod
    Posted 2 years ago #

    Maybe run a check on get_category_parents ?

Topic Closed

This topic has been closed to new replies.

About this Topic