This plugin has been closed and is no longer available for download.

Related Posts by Category

Description

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

Installation

  1. Download plugin
  2. Unzip the archive
  3. Upload the file related_posts.php into ../wp-content/plugins/
  4. Go to tab Plugins
  5. Activate Related Posts by Category
  6. Ready

Contributors & Developers

“Related Posts by Category” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.9.1

  • Bugfix for article titles with a number

0.9

  • Checks and cleans of user parameters

0.8

  • Exclusion of desired categories

0.7

  • Add support for the default thumb image

0.6

  • Add hook support for the attaching action

0.5

  • Post thumbnails (since WP 2.9), first available post image alternatively
  • WordPress 2.9 ready

0.4

  • Increase the security of the database query

0.3

  • By chance generated display of results with orderby => RAND

0.2

  • post or page as a parameter for type value

0.1

  • Related Posts by Category goes online