WordPress.org

Support

Support » Themes and Templates » Custom template for single within a category

Custom template for single within a category

  • I’m looking to have my template customised if it’s affiliated with a certain category. I know that I can use is_category() for the archive of the category, but I don’t know how to (or if I can) do anything to a post within the category.

    Just to be clear, an example post is “Billy’s Bike Store” under the category “Local Businesses”, category ID 10. So is there some way to say, if the parent category ID is “10”, print {text}?

    (I’m running WP 2.0, if it makes a difference)

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom template for single within a category’ is closed to new replies.
Skip to toolbar