BuddyBoss Home – Web Support Forums Themes Boss. theme Insert category and tag links in posts template

Viewing 2 posts - 1 through 2 (of 2 total)
  • Question

    #37454
    @angslycke

    Hi!

    I’d like to insert a posts category and tags below the post content and have those words linked to their respective archive page to make it easier for my users to find related content. I have the PHP code to implement that from my previous theme but am not sure in which template file I should put it, and where in that file.

    Thanks!

    Answers

    #37491

    Alyssa
    Participant
    @alyssa-buddyboss

    @angslycke this code needs to be added to content.php. However, if you only want this added to single pages you will need to add an if statement to that page since it is also used for archives.
    Insert this where you want it on the page:

    <?php if ( is_single() ){
    [your PHP code here]
    } ?>
Viewing 2 posts - 1 through 2 (of 2 total)
  • The question ‘Insert category and tag links in posts template’ is closed to new replies.