Related Posts Thumbnails
Conditional Top_Text (1 post)

  1. ksaffy
    Posted 2 years ago #

    Im using the:

    <?php get_related_posts_thumbnails(); ?> method in my custom single page. The top_text doesn't show so I've added:

    <?php _e( ' <h5 class="sub">Other Events you may like</h5>', 'related-posts-thumbnails' ); ?>

    Now my problem is, if there are no related thumbnails to show, the Top_text still shows. How can I modify the output to either not show the Top_Text or to show a message, e.g. There are currently no related events.?

    Any help would be most appreciated! Thanks...


Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic