Related Posts by Category

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

Author:Sergej Müller (profile at wordpress.org)
WordPress version required:2.8
WordPress version tested:3.3.2
Plugin version:0.9.1
Added to WordPress repository:20-11-2008
Last updated:23-12-2011
Warning! This plugin has not 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.
Rating, %:0
Rated by:0
Plugin URI:http://playground.ebiene.de/400/related-posts...
Total downloads:75 447
plugin download
Click to start download

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