get_posts


get_posts ( $args = null )

Parameters:
  • (array) $args { Optional. Arguments to retrieve posts. See WP_Query::parse_query() for all available arguments.
See:
  • WP_Query::parse_query()
Returns:
  • (array) List of posts.
Defined at:

Description

Retrieve list of latest posts or posts matching criteria.

The defaults are as follows:

Related Functions

get_post, next_posts, get_post_types, edit_post, get_post_stati

Top Google Results

User discussions

wpseek mobile