Parameter | Description | Default value | Accepted values |
---|---|---|---|
cat_id | The id of category from which the posts are to be displayed | 1 | Any numerical category id. You can check the Posts > Category and hover over the category Edit link to check the category |
css_theme | The id of the predefined or added CSS theme | 0 | Any numerical or string id value of the Themes. Here is the list of predefined CSS Themes:
|
is_thumb | Whether or not to display thumbnails | ”true” | String “true” or “false” |
list_num | Number of posts to display (max). This excludes sticky posts (if any) | 10 | Any numerical value |
show_comments | Whether or not to display comment counts in post meta box | ”true” | String “true” or “false” |
sort_using | Select the sorting method. A corresponding ID should be passed. Check the accepted values. | 1 | Following are the accepted IDs. Note that you need to pass it like sort_using=2
|
sort_order | Select the sorting order ascending or descending | ”asc” | The accepted values are:
|
exclude_post | Comma Seperated values of IDs of posts to exclude | ” | The following ID format will work‘12, 34,65 75,12 ,45 ‘ |
sticky_post | Same as Exclude Posts. Only the posts will become sticky. This will not verify whether they belong to the selected category or not. They will be placed before the normal list and CSS class wp-cpl-sc-sticky will be applied to them | ||
show_date | Whether or not show date in post meta | ”true” | ”true” to display and “false” to hide |
show_author | Whether or not show author link in post meta | ”true” | ”true” to display and “false” to hide |
show_excerpt | Whether or not show excerpt in post meta | ”true” | ”true” to display and “false” to hide |
excerpt_length | The length of the excerpt (character count) | 150 | Any numerical value |
optional_excerpt | Gives preference to manually entered WP excerpts on posts. This will override the excerpt length | ”false” | ”true” to activate “false” to deactivate. |