WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Related Posts by Category

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

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

Requires: 2.8 or higher
Compatible up to: 3.3.2
Last Updated: 2011-12-23
Downloads: 72,187

Ratings

4 stars
4.4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

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
75,4,3
50,2,1
0,1,0