WordPress.org

Forums

Related Posts Thumbnails
How to change "Top text" to category name? (1 post)

  1. EVOgroup
    Member
    Posted 9 months ago #

    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/

Reply

You must log in to post.

About this Plugin

  • Related Posts Thumbnails
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic