Support » Fixing WordPress » Same text in all posts of category

  • I would like to know if there is a way to add the same text or banner under all posts of a specific category?
    i dont mean in the category page. i mean in each post’s page

Viewing 1 replies (of 1 total)
  • esmi

    (@esmi)

    Forum Moderator

    That should be possible by customising your theme’s single.php template file – possibly via a child theme. You could use the in_category():

    <?php
    if ( in_category( 'wibble' )) :
    [banner markup goes here]
    endif;?>
Viewing 1 replies (of 1 total)
  • The topic ‘Same text in all posts of category’ is closed to new replies.