posts_collection

A collection of records for a certain Post Type. This object is returned when a content type for posts' plural name is called on site, e.g. site.pages.

This is a specific collection for posts. It accepts the methods below, and everything described in collection.

posts_collection.index

Returns the index post (the post with the index template).

posts_collection.ordered

Returns array of ordered posts. This ordering can be set by the user in the Posts dashboard, when they click on ‘Reorder Posts'. You can also get the 'ordered’ position of an individual post with order_position post | post.order_position