WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Corbula
    Member
    Posted 2 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?

    Thanks

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

  2. thatwastaxing
    Member
    Posted 2 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

About this Topic