ORM Base Params

Individual Posts

  • ID / id: The unique numeric identifier of the post to be queried.

Top ↑

  • search: A string value to search for within the title or content of the posts.
  • post_status: An array of post statuses to be included in the query (e.g., ‘publish’, ‘draft’, ‘pending’).
  • title_like: A string value to search for within the title of the posts.
  • post_content: A string value to search for within the content of the posts.
  • post_excerpt: A string value to search for within the excerpt of the posts.

Top ↑

Miscellaneous

  • to_ping: A string value to search for within the ‘to_ping’ field of the posts.
  • post_content_filtered: A string value to search for within the filtered content of the posts.
  • guid: A string value to search for within the GUID of the posts.
  • menu_order: An integer value representing the menu order of the posts to be queried.

Top ↑

Post publish date

  • date / after_date: A date string to fetch posts published after the specified date.
  • before_date: A date string to fetch posts published before the specified date.
  • date_gmt / after_date_gmt: A date string to fetch posts based on the post_date_gmt field, published after the specified date.
  • before_date_gmt: A date string to fetch posts based on the post_date_gmt field, published before the specified date.

Top ↑

Post modified date

  • post_modified: A date string to fetch posts modified after the specified date.
  • post_modified_gmt: A date string to fetch posts based on the post_modified_gmt field, modified after the specified date.

Top ↑

  • meta_equals: Query posts based on custom meta fields where the meta key is equal to the specified value.
  • meta_not_equals: Query posts based on custom meta fields where the meta key is not equal to the specified value.
  • meta_gt: Query posts based on custom meta fields where the meta key is greater than the specified value.
  • meta_greater_than: Same as meta_gt.
  • meta_gte: Query posts based on custom meta fields where the meta key is greater than or equal to the specified value.
  • meta_greater_than_or_equal: Same as meta_gte.
  • meta_like: Query posts based on custom meta fields where the meta key is like the specified value.
  • meta_not_like: Query posts based on custom meta fields where the meta key is not like the specified value.
  • meta_lt: Query posts based on custom meta fields where the meta key is less than the specified value.
  • meta_less_than: Same as meta_lt.
  • meta_lte: Query posts based on custom meta fields where the meta key is less than or equal to the specified value.
  • meta_less_than_or_equal: Same as meta_lte.
  • meta_in: Query posts based on custom meta fields where the meta key is in the specified array of values.
  • meta_not_in: Query posts based on custom meta fields where the meta key is not in the specified array of values.
  • meta_between: Query posts based on custom meta fields where the meta key is between the specified range of values.
  • meta_not_between: Query posts based on custom meta fields where the meta key is not between the specified range of values.
  • meta_exists: Query posts based on custom meta fields where the specified meta key exists.
  • meta_not_exists: Query posts based on custom meta fields where the specified meta key does not exist.
  • meta_regexp: Query posts based on custom meta fields where the meta key matches the specified regular expression.
  • meta_equals_regexp: Same as meta_regexp.
  • meta_not_regexp: Query posts based on custom meta fields where the meta key does not match the specified regular expression.
  • meta_not_equals_regexp: Same as meta_not_regexp.
  • meta_regexp_or_like: Query posts based on custom meta fields where the meta key matches the specified regular expression or is like the specified value.
  • meta_equals_regexp_or_like: Same as meta_regexp_or_like.
  • meta_not_regexp_or_like: Query posts based on custom meta fields where the meta key does not match the specified regular expression and is not like the specified value.
  • meta_not_equals_regexp_or_like: Same as meta_not_regexp_or_like.

Top ↑

  • taxonomy_exists: Query posts based on a taxonomy where the specified taxonomy exists.
  • taxonomy_not_exists: Query posts based on a taxonomy where the specified taxonomy does not exist.
  • term_id_in: Query posts that have terms with the specified IDs in the given taxonomy.
  • term_id_not_in: Query posts that do not have terms with the specified IDs in the given taxonomy.
  • term_id_and: Query posts that have all the terms with the specified IDs in the given taxonomy.
  • term_name_in: Query posts that have terms with the specified names in the given taxonomy.
  • term_name_not_in: Query posts that do not have terms with the specified names in the given taxonomy.
  • term_name_and: Query posts that have all the terms with the specified names in the given taxonomy.
  • term_slug_in: Query posts that have terms with the specified slugs in the given taxonomy.
  • term_slug_not_in: Query posts that do not have terms with the specified slugs in the given taxonomy.
  • term_slug_and: Query posts that have all the terms with the specified slugs in the given taxonomy.
  • term_in: Query posts that have the specified terms in the given taxonomy (terms can be IDs, slugs, or names).
  • term_not_in: Query posts that do not have the specified terms in the given taxonomy (terms can be IDs, slugs, or names).
  • term_and: Query posts that have all the specified terms in the given taxonomy (terms can be IDs, slugs, or names).