• I’d like to add a menu when watching a post from one particular category. Is there a “smart” way to do it.

    I checked the template hierarchy but I can’t find a way to have a “post-category.php” page to do that… Is there a way to easily implement that?

Viewing 1 replies (of 1 total)
  • There may be a way to use the template hierarchy if you use custom post types instead of categories.

    However it’s quite easy to do what you want with categories. You can simply test (in your single.php template file) if the post is in the category you want, using the function get_the_terms (which can be used to returns all categories the post belongs to).

Viewing 1 replies (of 1 total)
  • The topic ‘Personalize post page for one category’ is closed to new replies.