1 === Related Posts by Category === |
1 === Related Posts by Category === |
2 Contributors: stalkerX |
2 Contributors: stalkerX |
3 Tags: similar posts, related posts, similar, related, posts, category |
3 Tags: similar posts, related posts, similar, related, posts, category |
4 Requires at least: 2.3 |
4 Requires at least: 2.8 |
5 Tested up to: 2.8.6 |
5 Tested up to: 3.3 |
6 Stable tag: trunk |
6 Stable tag: trunk |
7 |
7 |
8 The WordPress Plugin for Similar Posts. It's small. It's fast. Really! |
8 WordPress plugin for related posts ordered by current category. It's small. It's fast. Really! |
9 |
9 |
10 |
10 |
11 == Description == |
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. |
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 |
13 |
14 |
14 |
15 = Features = |
15 = Features = |
|
16 * Categories exclude |
|
17 * Hook support |
16 * Very fast execution |
18 * Very fast execution |
17 * No user interface required |
19 * No user interface required |
|
20 * Post thumbnail integration (WP 2.9 or older) |
18 * Quick query in only one sql statement |
21 * Quick query in only one sql statement |
19 * Quantity of results and further options are adjustable |
22 * Quantity of results and further options are adjustable |
20 * Foolproven implementing of this plugin |
|
21 |
23 |
22 |
24 |
23 = Mode of operation = |
25 = Mode of operation = |
24 Just put `<?php related_posts_by_category(params) ?>` in your *single.php* template for display a list of similar posts. |
26 Just put `<?php do_action('related_posts_by_category', args) ?>` in your *single.php* template for display a list of similar posts. |
25 |
27 |
26 |
28 |
27 = Example = |
29 = Example = |
28 ` |
30 ` |
29 <ul> |
31 <ul> |
30 <?php |
32 <?php do_action( |
31 related_posts_by_category( |
33 'related_posts_by_category', |
32 array( |
34 array( |
33 'orderby' => 'RAND', |
35 'orderby' => 'RAND', |
34 'order' => 'DESC', |
36 'order' => 'DESC', |
35 'limit' => 5, |
37 'limit' => 5, |
36 'echo' => true, |
38 'echo' => true, |
37 'before' => '<li>', |
39 'before' => '<li>', |
38 'inside' => '» ', |
40 'inside' => '» ', |
39 'outside' => '', |
41 'outside' => '', |
40 'after' => '</li>', |
42 'after' => '</li>', |
41 'rel' => 'nofollow', |
43 'rel' => 'nofollow', |
42 'type' => 'post', |
44 'type' => 'post', |
43 'message' => 'no matches' |
45 'image' => 'thumbnail', |
44 ) |
46 'message' => 'No matches' |
45 ); |
47 ) |
46 ?> |
48 ) ?> |
47 </ul> |
49 </ul> |
48 ` |
50 ` |
49 Please adjust the parameters accordingly. |
51 Please adjust the parameters accordingly. |
50 |
52 |
51 |
53 |
52 = Documentation = |
54 = Related Links = |
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") |
55 * [Blog](http://playground.ebiene.de "Playground Blog") |
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") |
56 * [Flattr](http://flattr.com/profile/sergej.mueller "Flattr") |
55 * [Follow us on Twitter for updates](http://twitter.com/wpSEO "wpSEO on Twitter") |
57 * [Google+](https://plus.google.com/110569673423509816572 "Google+") |
|
58 * [Portfolio](http://ebiene.de "Portfolio") |
|
59 * [Other plugins](http://wpcoder.de "Other plugins") |
|
60 * [Documentation](http://playground.ebiene.de/356/related-posts-by-category-wp-plugin-fur-verwandte-beitrage-einer-kategorie/ "Related Posts by Category") |
56 |
61 |
57 |
62 |
58 == Changelog == |
63 == Changelog == |
|
64 = 0.9.1 = |
|
65 * Bugfix for article titles with a number |
|
66 |
|
67 = 0.9 = |
|
68 * Checks and cleans of user parameters |
|
69 |
|
70 = 0.8 = |
|
71 * Exclusion of desired categories |
|
72 |
|
73 = 0.7 = |
|
74 * Add support for the default thumb image |
|
75 |
|
76 = 0.6 = |
|
77 * Add hook support for the attaching action |
|
78 |
|
79 = 0.5 = |
|
80 * Post thumbnails (since WP 2.9), first available post image alternatively |
|
81 * WordPress 2.9 ready |
|
82 |
59 = 0.4 = |
83 = 0.4 = |
60 * Increase the security of the database query |
84 * Increase the security of the database query |
61 |
85 |
62 = 0.3 = |
86 = 0.3 = |
63 * By chance generated display of results with *orderby* => *RAND* |
87 * By chance generated display of results with *orderby* => *RAND* |