[toggle title=”Code”]

[[posts category="4"]]

Parameters

category
(string) The category ID’s to pull posts from. Can be entered as a comma separated list.
posts_per_page
(integer) (Optional) The number of posts to display on each page.
paging
(bool) (Optional) Enable paging. (true/false)

Order Parameters

order
(string) (Optional) Designates the ascending or descending order of the “orderby” parameter.

“ASC” – ascending order from lowest to highest values (1, 2, 3; a, b, c).
“DESC” – descending order from highest to lowest values (3, 2, 1; c, b, a).
orderby
(string) (Optional) Sort posts by.

‘none’ – No order.
‘id’ – Order by post id.
‘author’ – Order by author.
‘title’ – Order by title.
‘date’ – Order by date. (default)
‘modified’ – Order by last modified date.
‘parent’ – Order by post/page parent id.
‘rand’ – Random order.
‘comment_count’ – Order by number of comments
‘menu_order’ – Order by Page Order.

[/toggle]
[posts posts_per_page=”3″]