i4w_related_posts
Usage
This shortcode provides the ability to display a certain number of "related" posts based on post category.
[ELSE_related_posts] conditional branching is NOT supported.
Shortcode nesting is NOT supported.
Parameters
| Parameter | Description | Default | Required |
|---|---|---|---|
| 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. | None | Yes |
| limit | Defines the number of related posts to retrieve and display. | 5 | No |
| display | Defines what to display. Valid values: 'title' (displays only titles) and 'title_excerpt' (displays both title and excerpt). | title | No |
| excerpt_len | Defines the length of the post excerpts. | As set in Plugin Options | No |
Example
Shortcode
[i4w_related_posts cat='72' limit='10']
Shortcode
[i4w_related_posts cat='72' limit='10' display='title_excerpt' excerpt_len='55']