I'm looking for something like they are using here:
http://www.jennyreviews.com/as-seen-on-tv/triple-joint-formula/
Look under "Related Product Reviews"
I checked the source but could not find the plugin code listed. Maybe its a widget?
|
I'm looking for something like they are using here: http://www.jennyreviews.com/as-seen-on-tv/triple-joint-formula/ Look under "Related Product Reviews" I checked the source but could not find the plugin code listed. Maybe its a widget? |
|||
|
|
|
@Scott B, It looks like they are using a related posts query based on category. When a single Item (post) is being displayed the query looks up the category id then displays posts from the same category. Add The following code to your sidebar or even to the bottom of single.php depending on where you want to display the "Related Posts"
What this is doing is first getting the category of the current post being displayed, omitting the current item from the query, then checking to make sure there are more than 1 posts in that category. If there are then it will output "More in Your category name" followed by the permalink to the post. If you wanted to show the featured image you could change the last section to look like this:
|
|||||||
|
|
I am here to point out a mistake in the code that is shown by @Scott B. Global $post is actually an array that WordPress uses to display data on the blog. but in this code the array value in $post variable goes to last post in the current category. so after successful display of list of posts. when you see the comments it will always be for the last post mentioned in the list. so if you visit first post from the current category, the comments box will be of last post in the newly generated list of posts. After thinking out a little i fount a solution to that and added another variable to store global $post array. then in the end i assigned the values back to global $post. in this way global post got it current values back and so the correct comment box. Here is the corrected code if anyone needed.
|
||||
|
|
|
the follow small function list related post via tags
alternativ you can use the category:
|
|||
|
|
|
"Yet Another Related Posts Plugin" should do what you want. Just configure the related post template to display the post thumbnail and title. |
|||
|
|
|
I'm using a plugin called Similar Posts to do exactly what you are after. Like this http://www.australianmusichistory.com/this-month-in-australian-music-september/ It has some nice formatting features that allow you to display thumbnails etc. |
|||
|
|
|
As the author of Yet Another Related Posts Plugin, I of course will recommend that plugin. :) (Thanks to Steve and Doug for pointing this out as well.) The feedback I get time and time again is that the "related" results received from YARPP tend to better reflect an intuitive notion of "relatedness", largely due to YARPP's algorithm looking at not just shared categories but also shared tags, shared keywords in the title, and shared keywords in the content. A tutorial on the custom templating functionality mentioned is available here. If you have any questions getting YARPP integrated in your setup, I (and many other YARPP users) can help on the wordpress.org forums' section for YARPP. |
|||
|
|
|
Simple Tags plugin offers the 'Related posts' functionality based on tags of the post. There is a way to configure the template of how related posts are shown. Not sure if you can take it as far as display the post image, but it's sure worth a try. |
|||
|
|