Plugin Directory

Related Posts by Category

Author: Sergej Müller

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

  • Very fast execution
  • No user interface required
  • Quick query in only one sql statement
  • Quantity of results and further options are adjustable
  • Foolproven implementing of this plugin

Mode of operation

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

Example

<ul>
  <?php
  related_posts_by_category(
    array(
      'orderby' => 'RAND',
      'order' => 'DESC',
      'limit' => 5,
      'echo' => true,
      'before' => '<li>',
      'inside' => '&raquo; ',
      'outside' => '',
      'after' => '</li>',
      'rel' => 'nofollow',
      'type' => 'post',
      'message' => 'no matches'
    )
  );
  ?>
</ul>

Please adjust the parameters accordingly.

Documentation

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus (1 reporting)

100%
0,1,0
100,1,1 100,1,1
100,1,1

Average Rating

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