If you look at the bottom of this post you will see related posts listed by the Related Posts By Category plugin. This is a simple WordPress plugin that just does exactly what I want. It lists related posts at the bottom of your content or anywhere else you choose to put them. It gets the list from the same category that the original post belongs to. This way, if posts are not in the same category then they are not related. This is a great plugin to keep your readers browsing on your website.
You can simply search for Related Posts By Category and install it automatically through your WordPress dashboard. After doing this there is one thing you have to do to get it working. I removed the image thumbnail bit and changed the limit number to 7.
Watch the video below to see the details.. It is much easier to understand when you can see it for yourself.
>>CODE TO COPY<<
`
<ul>
<?php do_action(
‘related_posts_by_category’,
array(
‘orderby’ => ‘RAND’,
‘order’ => ‘DESC’,
‘limit’ => 5,
‘echo’ => true,
‘before’ => ‘<li>’,
‘inside’ => ‘» ‘,
‘outside’ => ”,
‘after’ => ‘</li>’,
‘rel’ => ‘nofollow’,
‘type’ => ‘post’,
‘image’ => ‘thumbnail’,
‘message’ => ‘No matches’
)
) ?>
</ul>
`




{ 4 comments… read them below or add one }
Hi Mitz,
glad you share this tutorial is nice and very easy to follow. I love to see this,
Brenda Macalino recently posted..ערבות הדדית
It works like a charm.
I’m using it on your site all the time.
is this post not in a category or something? Because here it says “random posts”.
Danny recently posted..Remington RM1015P 10-Inch 8 Amp Electric Pole chain Saw
hey.. thanks for this awesome tutorial.. but r u sure this plugin is the best one to use? I’ve found some other plugins for related posts but can’t decide which one is better
Tim recently posted..Used Tire Prices
To tell the truth…For the absolutely most simple plugin I would use WP related posts. Also Link within looks good too but it does a weird redirect thing.