WordPress Plugin RelatedPosts 0.3.2
Montag, der 15. Dezember 2008. Veröffentlicht von René.
Dieses Plugin für WordPress bietet mehrere Möglichkeiten über Tags verwandte Beiträge eines Beitrags anzuzeigen. Es beinhaltet ein Sidebar-Widget das nur beim Betrachten eines einzelnen Beitrags angezeigt wird und die über die Tags verwandten Beiträge dieses Beitrags auflistet. Die Anzahl der anzuzeigenden verwandten Beiträge ist konfigurierbar. Die verwandten Beiträge werden nach Gewichtung (Anzahl gleicher Tags) sortiert und anschließend nach Datum. Es ist auch Möglich die Liste der verwandten Beiträge über Platzhalter in einen Beitrag einzubinden. Ebenfalls kann die Liste in Template-Dateien eingebaut werden, so dass die Liste der verwandten Beiträge zum Beispiel auf jeder Beitragsseite angezeigt werden.
English Text: This WordPress plugin provides multiple options to show the via tags related posts of a post. It contains a sidebar widget that is only visible when viewing a single post and displays a list of posts that are related with the current post via the tags. The number of related posts to display can be configured. The posts are sorted by the number of matching tags and then by the post date. It is also possible to insert the list of related post in a post via a placeholder. You can also embedd the list of related post in template files to add it to the bottom of each post page for example.
Translate the whole page: english
Als Demo des Plugins dient diese Seite: In der Sidebar ist das Widget eingebunden, und am Ende dieses Beitrags wird ebenfalls die Liste der verwandten Beiträge angezeigt.
Detailierte Informationen zur Konfiguration findet ihr weiter unten nach den Downloads in diesem Beitrag.
Wenn dir dieses Plugin gefällt, darfst du gerne hier klicken: Spenden (Amazon Wunschliste, Paypal, …) ![]()
Hier kann das Plugin heruntergeladen werden:
- Version 0.3.2 (2009-06-26)
- fixed forwarder to work with wordpress automatic plugin installation and update
Version 0.3.1 (2009-06-19)- added forwarder to work with wordpress automatic plugin installation and update
- Version 0.3 (2008-12-15)
- runtime caching for multiple usage within one page
- Version 0.2 (2008-12-15)
- important performance optimizations
- Version 0.1 (2007-12-03)
- includes the sidebar widget
- replaces placeholder within posts
- provides a function to use in templates
Eine deutsche bebilderte Anleitung für die Installation, Konfiguration und Verwendung des Plugins kann hier angesehen werden: RelatedPosts Install De
Ein Screenshot der Konfigurationsmöglichkeiten des Sidebar-Widgets:
Folgende Platzhalter können verwendet werden:
%title% wird ersetzt durch den Titel des Beitrags. %permalink% wird ersetzt durch den Premalink des Beitrags.
Die Liste der Verwandten Beiträge kann über den Platzhalter “%RELATEDPOSTS%” in jeden beliebigen Beitrag eingebunden werden (siehe auch RelatedPosts Install De):
Hallo, das ist ein Beitrag! Und das sind die verwandten Beiträge dieses Beitrags: %RELATEDPOSTS% Ende :-)
Der Platzhalter wird dann durch die Liste der verwandten Beiträge ersetzt.
Einbinden der Liste der verwandten Beiträge am Ende eines jeden Beitrags (über die single.php des Themes):
In der Datei “single.php” im Verzeichniss des Themes (z.B. “wp-content/themes/yourtheme/single.php”) muss folgender Code
<?php if( function_exists('rp_related_posts') ) rp_related_posts( '<br />Verwandte Beiträge:' ); ?>
zum Beispiel vor
<?php comments_template(); ?>
eingebunden werden (Siehe RelatedPosts Install De).
Der Funktion “rp_related_posts(…)” kann als zweiter Parameter auch ein Array von Argumenten übergeben werden:
array( 'limit' => 5, // limit number of related posts to display 'beforeposts' => '', 'afterposts' => '', // text before and after the list 'eachpost' => '<li><a href="%permalink%">%title%</a></li>', // for each related post 'noposts' => '' // can be a string to display if there are no related posts );
Weiterlesen
Kategorien: WordPress
Stichwörter: plugin, technisch, web, wordpress
Verwandte Beiträge:



























Am 31. Dezember 2007 um 01:40 Uhr
thx for this plugin …
it’ s use in aong time
Am 9. Januar 2008 um 04:05 Uhr
Nettes Plugin!
Aber ergänze mal die Readme, wenn man nicht geübt ist im Umgang mit PHP ist der Einbau mit Arrays nicht selbstverständlich (und auch Nicht-PHPler wollen dieses Teil bestimmt einmal angepasst in ein Template einfügen).
Bis ich raushatte, dass die Geschichte mit dem Array als zweitem Parameter so aussieht, hat mich das doch einiges an Zeit gekostet. Hilfreicher wäre statt dem was du in der Beschreibung für den Array jetzt stehen hast ein Komplettbeispiel, das gleich zeigt wie es mit Array aussieht, also bspw. so:
Am 9. Januar 2008 um 15:50 Uhr
Moin!
ich würde das Plugin ganz gerne auch auf den pages eingeblendte haben, da ich dort mit tag4pages ebenfalls Tags eingebaut habe. Als php-noob frag ich hiermit einfach mal nach, ob das mit ein paar Handgriffen möglich ist.
Am 11. Januar 2008 um 21:21 Uhr
Am 13. Januar 2008 um 19:04 Uhr
Am 16. Januar 2008 um 17:24 Uhr
Am 17. Januar 2008 um 20:58 Uhr
Am 20. Januar 2008 um 05:54 Uhr
Nice plug-in.
Only complaint is that in the source code, where you have it echo the copyright/author information, you included an accent aigu over the ‘e’ in your name.
This angered the HTML Validation gods, since that character is apparently not allowed in the UTF-8 character set.
I don’t know if there’s a UTF-8-friendly way to get that character in there… otherwise you might want to edit it out. I did. I have compulsions about having “valid” code.
Am 24. Januar 2008 um 11:22 Uhr
Wollt mich einfach nur für das Plugin bedanken.
Am 1. Februar 2008 um 12:34 Uhr
super plugin. ideal wäre, wenn man noch das datum bzw. den author mit einfügen könnte, also per %date% und %author% oder so.
Am 9. Februar 2008 um 03:04 Uhr
dear Mr Rene, i have a problem with this plugin, it doesn’t show up. This plugin doesn’t show up in my wp dashboard.
can u tell me how to fix it up….thanks a lot
Am 16. Februar 2008 um 17:53 Uhr
Am 17. Februar 2008 um 17:58 Uhr
Am 19. Februar 2008 um 21:50 Uhr
Am 20. Februar 2008 um 21:01 Uhr
Am 21. Februar 2008 um 11:13 Uhr
Am 22. Februar 2008 um 23:13 Uhr
Am 27. Februar 2008 um 22:20 Uhr
Am 3. März 2008 um 20:27 Uhr
Hi,
I have a problem with your plugin, in fact I have a problem with all tag based related post plugins. If I place the code snippet on the post page (in the single.php file) all is well and the correct related posts show up. But if I use the sidebar widget or place the code snippet manually into the sidebar, totally unrelated posts show up. Somehow the communication between the sidebar and the post get corrupted so the plugin gets the wrong information. It could be related to my theme, or there could be some varibles I need to reset ocr refresh in the sidebar to make it work. Any suggestions?
Am 9. März 2008 um 22:07 Uhr
Excellent plugin. Does exactly what is required. Many thanks.
Am 10. März 2008 um 12:59 Uhr
Am 12. März 2008 um 01:09 Uhr
This is a very useful plugin. It’s a great way to get visitors to stay on your blog for longer, which in turn is going to increase the chances of them eventually clicking your google ads.
Many thanks.
Am 14. März 2008 um 11:00 Uhr
Hallo,
schönes Plugin. Kann es aber sein, dass es nicht mit den Schlagworten vom SimpleTags-Plugin funktioniert?
Am 16. März 2008 um 14:38 Uhr
Hallo,
kann ich bestätigen, dass das Plugin in Verbindung mit dem aktuellen SimpleTags unter WP 2.3.3 funzt, da ich es soeben ausprobiert habe ;-).
Tschö
Nobbi
Am 17. März 2008 um 19:34 Uhr
I’m sorry that I can’t speak German. I hope English will suffice.
I was wondering if it is possible to exclude certain categories of post from being brought up in the related posts list??
I use my recent posts plugin only for my articles and therefore I would only like articles to appear in the related posts lists and not any site news.
Am 3. April 2008 um 09:01 Uhr
Will this work with Wordpress 2.5?
Am 13. April 2008 um 20:09 Uhr
Am 22. April 2008 um 13:48 Uhr
Am 4. Mai 2008 um 11:22 Uhr
Good work friend.. I got his plugin from wordpress website and using it on my blog and it is working super cool.. Thanks for the release and keep making useful things like this
Am 14. Mai 2008 um 13:06 Uhr
Am 17. Mai 2008 um 14:36 Uhr
Am 17. Mai 2008 um 19:43 Uhr
Am 20. Mai 2008 um 09:43 Uhr
Sher gutes Plugin, gibt es eine Möglichkeit, hinter den Permalinks den dazugehörigen Tag auszugeben? Bei mehreren Tags wäre das sehr hilfreich, damit man weiß, welches related post sich auf welches tag bezieht.
Am 24. Mai 2008 um 17:26 Uhr
Hi. Nice plugin, works like a charm! Is there a way to remove the bullets infront of the related posts in the post? Thank you!
Am 27. Mai 2008 um 05:55 Uhr
Am 27. Mai 2008 um 14:00 Uhr
So far so good. Works great!
Am 27. Mai 2008 um 17:33 Uhr
Am 30. Mai 2008 um 07:18 Uhr
Am 11. Juni 2008 um 23:44 Uhr
Am 18. Juni 2008 um 06:52 Uhr
Am 18. Juni 2008 um 06:54 Uhr
great plugin!
Am 22. Juni 2008 um 20:45 Uhr
Am 23. Juni 2008 um 18:38 Uhr
Am 23. Juni 2008 um 20:53 Uhr
Am 27. Juni 2008 um 15:56 Uhr
Am 30. Juni 2008 um 11:01 Uhr
Am 5. Juli 2008 um 12:20 Uhr
Am 7. Juli 2008 um 23:11 Uhr
Am 15. Juli 2008 um 21:50 Uhr
Am 28. Juli 2008 um 14:14 Uhr
Am 4. August 2008 um 10:02 Uhr
Hi.. thanks for the widget. It helps me much to improve my blog
Thanks Rene!
Am 6. August 2008 um 01:39 Uhr
Hallo,
das Plugin ist ansich wunderbar, nur es beansprucht viel Ladezeit, wenn man zu viele Posts hat.
Hast du eine Idee, wie man es schneller machen kann?
Vielen Dank
Am 15. August 2008 um 21:09 Uhr
Am 20. August 2008 um 14:03 Uhr
Am 26. August 2008 um 09:00 Uhr
Thanks for the plugin.
Really handy for a WP user. Congrats for your documentation too.
Regards Ted
Am 1. September 2008 um 21:48 Uhr
Ein tolles Plugin - danke dafür! Spart mir in Zukunft sicher eine Menge Arbeit.
Gruss
Klaus
Am 13. September 2008 um 09:43 Uhr
Thanks for the plugin.
Am 22. September 2008 um 13:42 Uhr
Am 23. September 2008 um 13:31 Uhr
Am 24. September 2008 um 03:15 Uhr
Am 5. Oktober 2008 um 07:00 Uhr
Am 14. Oktober 2008 um 09:35 Uhr
Am 26. Oktober 2008 um 12:33 Uhr
Am 4. November 2008 um 18:38 Uhr
Am 10. November 2008 um 15:25 Uhr
Am 10. November 2008 um 18:04 Uhr
Am 14. November 2008 um 06:52 Uhr
Am 14. November 2008 um 10:27 Uhr
Am 6. Dezember 2008 um 18:41 Uhr
Am 8. Dezember 2008 um 03:20 Uhr
Am 12. Dezember 2008 um 09:29 Uhr
Am 12. Dezember 2008 um 14:37 Uhr
Am 18. Dezember 2008 um 01:01 Uhr
Am 22. Dezember 2008 um 07:40 Uhr
Am 24. Dezember 2008 um 13:11 Uhr
Am 24. Dezember 2008 um 15:18 Uhr
Am 10. Januar 2009 um 21:08 Uhr
Am 15. Januar 2009 um 11:43 Uhr
Am 2. Februar 2009 um 12:52 Uhr
Am 2. Februar 2009 um 15:44 Uhr
Super Plugin! Vielen Dank!
Am 1. März 2009 um 14:42 Uhr
Am 23. Juli 2009 um 12:18 Uhr
Um einen weiteren Platzhalter mit dem Datum des Artikels einzuführen kann in den Zeilen 89ff
dieser Teil:
//—————————————————————————–
// replace placeholders
function rp_replace_placeholders( $post, $string ) {
// replace placeholders
$string = str_replace( ‘%title%’,
get_the_title($post->ID), $string );
$string = str_replace( ‘%permalink%’,
get_permalink($post->ID), $string );
// return
return $string;
}
//—————————————————————————–
durch den Folgenden Codeteil ersetzt werden:
//—————————————————————————–
// replace placeholders
function rp_replace_placeholders( $post, $string ) {
$post_id = $post->ID;
$post_info = get_post($post_id);
$post_datum = $post_info->post_date;
// replace placeholders
$string = str_replace( ‘%title%’,
get_the_title($post->ID), $string );
$string = str_replace( ‘%permalink%’,
get_permalink($post->ID), $string );
$string = str_replace( ‘%date%’,
date(”d.m.Y”, strtotime($post_datum)), $string );
// return
return $string;
}
//—————————————————————————–
Dadurch kann man auch den Platzhalter %date% verwenden durch welchen das Datum des verwandten Beitrags ausgegeben werden kann.
Ich nutze das ganze auf unserer Vereinswebsite unter jedem Beitrag - beispielsweise hier: http://waraffb.de/schwimmen/?p=349
greez,
-Ixam
Am 12. August 2009 um 07:31 Uhr
Am 7. Dezember 2009 um 20:12 Uhr
Am 6. Januar 2010 um 12:35 Uhr