get_tptn_posts()
Retrieves an array of the related posts.
The defaults are as follows:
Since: 3.0.0
Source: includes/functions.php line 96
Signature
function get_tptn_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
Top_Ten_Query::prepare_query_args()