WordPress-Plugin: Related Entries

Published 2005-09-11, 02:09

Related Entries zeigt auf der Detailseite eine Liste von verwandten Einträgen die irgendwie was mit dem aktuellen Beitrag zu tun haben könnten.

3. The plugin is called using < ?php related_posts(); ?>

*** PARAMETERS ***

< ?php related_posts($limit, $len, '$before_title', '$after_title', '$before_post', '$after_post', $show_pass_post, $show_excerpt); ?>

$limit – No. of related entries to display.
$len – Desired excerpt length (no. of words).
$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: < ?php related_posts(5, 10, '<li>', '', '', '', false, false); ?>

Result: Will display an unordered list ((posts are already ordered based on relevance) of 5 related posts (if there are that many matches). This is the most common usage for this plugin, hence the example.

Topic(s): Wordpress No comments - :(

Diskussion zum Artikel

» Selbst kommentieren

  1. Zum Artikel WordPress-Plugin: Related Entries sind noch keine Kommentare vorhanden. Deine Meinung wäre jedoch willkommen!

Sorry, the comment form is closed at this time.

19 queries. 0,208 seconds.