WordPress.org

Ready to get started?Download WordPress

Forums

list of related posts (4 posts)

  1. adamohern
    Member
    Posted 5 years ago #

    Hello again!

    I'm trying to put a list of related posts into my single.php template file, hopefully correlating the top few posts with the most similar tags. Does anybody have a good method for doing this?

    For example, lets say I have a post called "Dalmation", and it has the tags "dog, firetruck, spots." If I were to view this post, I'm hoping that it would show me the contents of the post, followed by a listing of the top 10 similar posts, ranked by the number of shared tags.

    Any thoughts?

    Thanks!
    Adam

  2. adamohern
    Member
    Posted 5 years ago #

    Really? Nobody? Seems like this would be a common thing to do, doesn't anybody out there know how to do this?

  3. adamohern
    Member
    Posted 5 years ago #

    Ah, looks like I need to do a custom query with tag=$tag1,$tag2,$tag3 etc, and then go thru the loop again.

    I think I've got it. Thanks anyway!

  4. @adamohern - Check out Yet Another Related Posts Plugin. It does a good job of finding related posts using tags, categories, and even the body text and title. Give it a try. ^^

Topic Closed

This topic has been closed to new replies.

About this Topic