post-query.php
Table of Contents
Functions
- buddyc_post_query() : mixed
- Performs a post query.
Functions
buddyc_post_query()
Performs a post query.
buddyc_post_query(string $post_type[, array<string|int, mixed> $args = [] ]) : mixed
Parameters
- $post_type : string
-
The slug of the post type.
- $args : array<string|int, mixed> = []
-
} An optional array of args for the post query.
@array array $meta An associative array of meta keys and values. @string string $compare The compare operator for the meta queries. Defaults to '='. @array array $tax An associative arary of tax names and tags. @int int $max The maximum number of posts to retrieve.}