WordPress Related Posts
[resolved] No related posts to show (6 posts)

  1. aluknot
    Posted 2 years ago #


    How can i do to take out the "Related Posts" title when there is no related posts to show. If there is not option to do that i really suggest to implement this simple, but usefull feature.

    Thanks to all, and sorry if my english is not really good.


  2. aluknot
    Posted 2 years ago #

    I can use my own solution like adding a condition to the output like:

    if ($related_posts) {
    		return "\n" . $output . "\n";

    But well, if the plugin update that will be removed, thats why the suggestion.

  3. jureham
    Plugin Author

    Posted 2 years ago #


    plugin should be using random posts if related posts can't be found so it's a bit strange that it doesn't display anything for you.

    Can you please link to the post where this happens.


    ps. I'll add something similar to your suggestion to the next version. Just to be sure :)

  4. jureham
    Plugin Author

    Posted 2 years ago #

    ps2. I pushed it to the dev channel if you want to try it out:


    Thanks, Jure

  5. aluknot
    Posted 2 years ago #

    Ohh, now i understand why that happens, becouse i tested this with only one post... i didnt know the plugin pick up a random post if related posts cant be found.

    So now the problem is solved but... i really suggest the implementation of an option to: pick up random posts (like default) or dont show nothing.


  6. cbarnett
    Posted 2 years ago #

    Hi, we ran into this problem too. We didn't want any random posts showing up on certain posts so we did the fix you suggested on a different support thread here to take it back to the old days and just use tags for relevance so we would have complete control of related posts showing up.

    So, this leaves us with a blank "Read More" section at the bottom of posts with no tags. For this reason, it would be nice to have a check bo under settings that you can hit when "If no related posts, hide title "Read More"" or something of that nature.

    And also check boxes where you can pick exactly what it uses for relevance - tags, categories, or random, etc would be nice! Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Related Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.