Can't get this working with category parents
-
Below a code I want to use for showing a template when the posts main category is 76 but is doesn’t work. I have no clue what’s wrong here.
Any help is welcome and appreciated to get me on the right track again.
<?php get_the_category_parents($id); ?> <?php if ($id == 76) {get_template_part('XXX');} ?>
- The topic ‘Can't get this working with category parents’ is closed to new replies.