is_main_query


is_main_query ( No parameters )

Returns:
  • (bool)
Defined at:

Description

Determines whether the query is the main query.

For more information on this and similar theme functions, check out the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ Conditional Tags} article in the Theme Developer Handbook.

Related Functions

is_main_site, is_main_network, is_main_blog, _admin_search_query, user_admin_url

Top Google Results

User discussions

wpseek mobile