Support » Plugin: Related Posts Thumbnails Plugin for WordPress » How to change "Top text" to category name?

  • EVOgroup


    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:
    $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?


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