adamohern
Member
Posted 3 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
adamohern
Member
Posted 3 years ago #
Really? Nobody? Seems like this would be a common thing to do, doesn't anybody out there know how to do this?
adamohern
Member
Posted 3 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!
@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. ^^