• How to change “Top text” to the category category of the post?

    For example:
    “Related posts from XXXXX Category”

    here is the code to get the category:
    <?php
    $category = get_the_category();
    echo $category[0]->cat_name;
    ?>

    Where i can insert it that it will work and output the category like in the example?

    Thanks.

    https://wordpress.org/plugins/related-posts-thumbnails/

  • The topic ‘How to change "Top text" to category name?’ is closed to new replies.