WordPress.org

Ready to get started?Download WordPress

Forums

Related Posts Thumbnails
Conditional Top_Text (1 post)

  1. ksaffy
    Member
    Posted 1 year 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...

    http://wordpress.org/extend/plugins/related-posts-thumbnails/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic