WordPress plugin: Related Posts by Category lists similar posts within any post.

http://wordpress.org/extend/plugins/related-posts-by-category/

Related Posts by Category lists similar posts within any post. Post thumbnail integration (WP 2.9 or older).

After installed, just put <?php new RPBC(array(params)) ?> in your single.php template for display a list of similar posts.

Example:

<ul>
  <?php if (class_exists('RPBC')) {
        new RPBC(
        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>
Advertisements
%d bloggers like this: