Support » Plugin: Related Posts » [Plugin: Related Posts Thumbnails] Using template tag, possible to hide if no related posts?
5 years, 3 months ago
I’m using this plugin to shows related products on my website. I’m using the template function to display the output.
<?php get_related_posts_thumbnails(); ?>
However when i use this, no title is shown i.e. related products, above the thumbnails. So i put it in html above the function to display the title.
The above function and the title are contained in a div. Is it possible to hide this div if there are no related products?
4 years, 8 months ago
I am in the same boat as Corbula. I use the template function and had to manually include the HTML for the Top Text.
So when there is no related posts, my hardcoded Top Text shows.
What’s a good workaround?