Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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'.

  • No labels