Recent

get_crp_posts function

get_crp_posts()

Retrieves an array of the related posts.

The defaults are as follows:

Since: 3.0.0
Source: includes/functions.php line 59

Signature

function get_crp_posts( $args = ... ): WP_Post[]|int[];

Parameters

TypeNameDescription
array$argsOptional. 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()