136
|
1 |
=== Related Posts by Category ===
|
|
2 |
Contributors: stalkerX
|
|
3 |
Tags: similar posts, related posts, similar, related, posts, category
|
|
4 |
Requires at least: 2.3
|
|
5 |
Tested up to: 2.8.6
|
|
6 |
Stable tag: trunk
|
|
7 |
|
|
8 |
The WordPress Plugin for Similar Posts. It's small. It's fast. Really!
|
|
9 |
|
|
10 |
|
|
11 |
== Description ==
|
|
12 |
*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.
|
|
13 |
|
|
14 |
|
|
15 |
= Features =
|
|
16 |
* Very fast execution
|
|
17 |
* No user interface required
|
|
18 |
* Quick query in only one sql statement
|
|
19 |
* Quantity of results and further options are adjustable
|
|
20 |
* Foolproven implementing of this plugin
|
|
21 |
|
|
22 |
|
|
23 |
= Mode of operation =
|
|
24 |
Just put `<?php related_posts_by_category(params) ?>` in your *single.php* template for display a list of similar posts.
|
|
25 |
|
|
26 |
|
|
27 |
= Example =
|
|
28 |
`
|
|
29 |
<ul>
|
|
30 |
<?php
|
|
31 |
related_posts_by_category(
|
|
32 |
array(
|
|
33 |
'orderby' => 'RAND',
|
|
34 |
'order' => 'DESC',
|
|
35 |
'limit' => 5,
|
|
36 |
'echo' => true,
|
|
37 |
'before' => '<li>',
|
|
38 |
'inside' => '» ',
|
|
39 |
'outside' => '',
|
|
40 |
'after' => '</li>',
|
|
41 |
'rel' => 'nofollow',
|
|
42 |
'type' => 'post',
|
|
43 |
'message' => 'no matches'
|
|
44 |
)
|
|
45 |
);
|
|
46 |
?>
|
|
47 |
</ul>
|
|
48 |
`
|
|
49 |
Please adjust the parameters accordingly.
|
|
50 |
|
|
51 |
|
|
52 |
= Documentation =
|
|
53 |
* [*Related Posts by Category* documentation in English](http://playground.ebiene.de/400/related-posts-by-category-the-wordpress-plugin-for-similar-posts/ "Related Posts by Category")
|
|
54 |
* [*Related Posts by Category* documentation in German](http://playground.ebiene.de/356/related-posts-by-category-wp-plugin-fur-verwandte-beitrage-einer-kategorie/ "Related Posts by Category")
|
|
55 |
* [Follow us on Twitter for updates](http://twitter.com/wpSEO "wpSEO on Twitter")
|
|
56 |
|
|
57 |
|
|
58 |
== Changelog ==
|
|
59 |
= 0.4 =
|
|
60 |
* Increase the security of the database query
|
|
61 |
|
|
62 |
= 0.3 =
|
|
63 |
* By chance generated display of results with *orderby* => *RAND*
|
|
64 |
|
|
65 |
= 0.2 =
|
|
66 |
* *post* or *page* as a parameter for type value
|
|
67 |
|
|
68 |
= 0.1 =
|
|
69 |
* *Related Posts by Category* goes online
|
|
70 |
|
|
71 |
|
|
72 |
== Installation ==
|
|
73 |
1. Download plugin
|
|
74 |
1. Unzip the archive
|
|
75 |
1. Upload the file *related_posts.php* into *../wp-content/plugins/*
|
|
76 |
1. Go to tab *Plugins*
|
|
77 |
1. Activate *Related Posts by Category*
|
|
78 |
1. Ready
|
|
79 |
|
|
80 |
|
|
81 |
== Frequently Asked Questions ==
|
|
82 |
= Documentation =
|
|
83 |
* [*Related Posts by Category* documentation in English](http://playground.ebiene.de/400/related-posts-by-category-the-wordpress-plugin-for-similar-posts/ "Related Posts by Category")
|
|
84 |
* [*Related Posts by Category* documentation in German](http://playground.ebiene.de/356/related-posts-by-category-wp-plugin-fur-verwandte-beitrage-einer-kategorie/ "Related Posts by Category")
|
|
85 |
* [Follow us on Twitter for updates](http://twitter.com/wpSEO "wpSEO on Twitter") |