This shortcode provides the ability to display a certain number of “related” posts based on post category.
This shortcode does NOT supports conditional branching with [ELSE_related_posts].
Shortcode nesting is NOT supported.
|cat||The category or categories to be used to select “related” posts. If more than one category is defined, the list should be comma-separated.
|limit||Defines the number of related posts to retrieve and display.
|display||Defines what to display. There are two valid values: ‘title’ (default), which displays only the titles of the related posts and ‘title_excerpt’, which displays both the title and an excerpt of the related posts.
|excerpt_len||Defines the length of the post excerpts.
Default: As set in “Plugin Options”
[i4w_related_posts cat='72' limit='10']
[i4w_related_posts cat='72' limit='10' display='title_excerpt' excerpt_len='55']
To use this shortcode in your own PHP code, please use as follows:
'123,234', 'limit'=>5, 'display'=>'title', 'excerpt_len'=>0 ) ); ?>