I have several Categories and want to title the single posts with a title belonging to the category the post is under.
I used this condition and it works fine the main post page. ‘latest-publications’ is the category.
<?php if ( is_category (‘latest-publications’) ) : ?>
Content in all single post pages
<?php } ?>
I am having trouble making this condition work for all of the single posts in the ‘latest-publication’ posts.
<?php if ( is_single() ) { ?>
Content in all single post pages
<?php } ?>
Any help is appreciated.