WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. aluknot
    Member
    Posted 1 year ago #

    Hello,

    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.

    http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/

  2. aluknot
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    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.

    Thanks

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

  4. jureham
    Member
    Plugin Author

    Posted 1 year ago #

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

    http://downloads.wordpress.org/plugin/wordpress-23-related-posts-plugin.zip

    Thanks, Jure

  5. aluknot
    Member
    Posted 1 year 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.

    Thanks.

  6. cbarnett
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.