is_main_query


is_main_query ( No parameters )

Returns:
  • (bool) Whether the query is the main query.
Defined at:

Description

Determines whether the query is the main query.For more information on this and similar theme functions, check out the {@link Conditional Tags} article in the Theme Developer Handbook.

Related Functions

is_main_site, is_main_network, is_main_blog, _admin_search_query, self_admin_url

Top Google Results

User discussions

wpseek mobile