get_crp_posts()
Retrieves an array of the related posts.
The defaults are as follows:
Since: 1.8.6
Source: includes/functions.php line 59
Changelog
| Version | Description |
|---|---|
3.0.0 |
Parameters have been dropped for a single $args parameter. |
1.8.6 |
Introduced. |
Signature
function get_crp_posts( $args = ... ): WP_Post[]|int[];
Parameters
| Type | Name | Description |
|---|---|---|
array |
$args |
Optional. Arguments to retrieve posts. See WP_Query::parse_query() for all available arguments. |
Returns
WP_Post[]|int[] — Array of post objects or post IDs.
See Also
CRP_Query::prepare_query_args()