Core Function
View Source on Trac ↗ query_posts()
query_posts( mixed $query ) Sets up The Loop with query parameters.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (array | | string) $query Array or string of WP_Query arguments. Required |
Return Value
((WP_Post[])
| int[]) Array of post objects or post IDs.
Function Information
Since Version
1.5.0
Source File
wp-includes/query.php
Advertisement