Plugin Directory

Related Posts by Category

WordPress plugin for related posts ordered by current category. It's small. It's fast. Really!

Download Version 0.9.1

Related Posts by Category lists similar posts within any post. As a search string the plugin does not use the title of the article nor weighs the content. In fact the category, which was assigned to the post, serves as the source of accordance.

Features

  • Categories exclude
  • Hook support
  • Very fast execution
  • No user interface required
  • Post thumbnail integration (WP 2.9 or older)
  • Quick query in only one sql statement
  • Quantity of results and further options are adjustable

Mode of operation

Just put <?php do_action('related_posts_by_category', args) ?> in your single.php template for display a list of similar posts.

Example

<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>

Please adjust the parameters accordingly.

Related Links

Author: stalkerX

Requires: 2.8 or higher
Compatible up to: 3.3.1
Last Updated: 2011-12-23 Downloads: 56,593

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(34 ratings)

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

Log in to vote.

0,1,0 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,3,3 100,1,1 100,1,1 100,1,1 100,1,1
100,3,3 100,1,1 100,1,1 100,1,1 100,1,1
100,5,5 100,1,1 100,1,1 100,1,1
75,4,3 100,1,1 100,1,1 100,1,1 100,2,2
75,4,3 100,1,1 100,1,1 100,1,1 100,2,2
100,1,1 100,1,1 100,2,2
100,1,1 100,1,1 100,2,2
100,1,1 100,2,2
100,1,1 100,2,2
100,1,1 100,1,1 100,2,2
100,1,1 100,2,2
100,1,1 100,2,2
100,1,1 100,2,2
100,1,1
100,2,2
80,5,4
100,2,2
100,1,1