Related articles plugin
A simple Wordpress plugin to emulate the behaviour of the related articles plugin for textpattern. It returns a list of the related entries for a post, based on a common keyword. I find it useful to differentiate between tags, which are very open in nature – and a closer type of relation, for example for a cluster of articles on the same specific subject. In my case, related entries to an item in my composition portfolio.
Version: 0.2
All you need to do is create a custom field named ‘keyword’ and enter the same value for all the posts you want to be related. Then add <?php related_articles(); ?> inside the Wordpress loop in your templates where you want the list of related articles to appear. You can specify inside the brackets what text or html tags go before and after the link of the related article/s, see the .php file for details.
This plugin is based on the Displaying Posts Using a Custom Select Query page of the Wordpress Codex and two plugins: Get Custom Field Values 2.1 by Scott Reilly and Related Posts 2.0.4 by Alexander Malov, Mike Lu & Jon Bourne.
Download the zip archive of the Related Articles plugin.
1 Comment
Jump to comment form