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…
- The topic ‘Conditional Top_Text’ is closed to new replies.