Related Posts Thumbnails
Using template tag, possible to hide if no related posts? (2 posts)

  1. Corbula
    Posted 4 years 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?



  2. thatwastaxing
    Posted 4 years 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?

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