How to install and configure the Related Posts By Category plugin for WordPress

by mitz on June 5, 2010

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’ => ‘&raquo; ‘,
    ‘outside’ => ”,
    ‘after’ => ‘</li>’,
    ‘rel’ => ‘nofollow’,
    ‘type’ => ‘post’,
    ‘image’ => ‘thumbnail’,
    ‘message’ => ‘No matches’
  )
) ?>
</ul>
`

Related posts:

Random Posts

This post was written by...

– who has written 186 posts on Wordpress Website builder.

I am addicted to internet marketing and making money online. Who wouldn't want to live that life? I started out with one website as a hobby and now have over 20. Come and join in the fun and share your knowledge about building Wordpress Websites. If you are interested in guest posting for this website click here to see more details.

Submit your own guest post now!

{ 4 comments… read them below or add one }

Brenda Macalino January 19, 2012 at 4:12 am

Hi Mitz,
glad you share this tutorial is nice and very easy to follow. I love to see this,
Brenda Macalino recently posted..ערבות הדדית

Reply

Danny September 19, 2011 at 2:30 am

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

Reply

Tim August 14, 2011 at 1:18 am

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

Reply

mitz August 14, 2011 at 6:38 am

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.

Reply

Leave a Comment

Please use your REAL NAME@KEYWORDS or just your REAL NAME to get approved. Worthless generic comments will be deleted. Please see these tips on how to get approved.

Previous post:

Next post: