Related Entries,Free WordPress Plugin

Related Entries,Free WordPress Plugin

 

 1335373760_353

 

This plugin will output a series of "related" entries based on keyword matching.


General


This plugin will output a series of "related" entries based on keyword matching.

 


Installation & Usage


1. Download the latest version.
2. Upload the plugin file (related-posts.php) to your /wp-content/plugins/ directory and activate it.
3. You will notice a "Related Posts Options" tab under your "Plugins" tab. If this is your first time installing this plugin please click the link for index table setup script at the bottom of the options page. You only need to do this once when you install the plugin for the first time. If automatic setup fails (can happen and may not even be my fault) read on ...
4. If automatic creation of a full text index fails. You will have to set it up manually. Don't worry it's not hard. Just open your database in phpMySQLadmin and run the following command (cut & paste):

 


ALTER TABLE `wp_posts` ADD FULLTEXT `post_related` (


`post_name` ,
`post_content`
)


*Note:* You may have to change wp_posts to something else if you are using a different prefix, which is common when you have multiple WP installs running of the same database.

 


The plugin is called using:


related_posts();


Parameters


Starting with version 2.0 you can just use the options page to customize the look and output. However you can use the following guide to edit the paremeters manually if you wish.

 


related_posts($limit, $len, '$before_title', '$after_title', '$before_post', '$after_post', $show_pass_post, $show_excerpt);

 


* $limit - No. of related entries to display. (Defaut: 5)
* $len - Desired excerpt length (no. of words). (Default: 10)
* $before/after_title - Text to insert before/after the title section.
* $before/after_post - Text to insert before/after the post exceprt section, if displayed.
* $show_pass_post - Toggle show/hide password protected posts. (Default: False)
* $show_excerpt - Toggle show/hide excerpts. (Default: False)

 


Example:


related_posts(5, 10, '', '', , , false, false);

 


Keywords

 


Mike extended the plugin to allow manual correlation of entries using keywords. This is especially useful in situations where post title may have little to do with the post's actual content.


Keywords are specified by placing into your article. The plugin will store these keywords into a custom field and use them instead of the post title to find possible related entries.

Download : Click here

No comments: