in_the_loop


in_the_loop ( No parameters )

Returns:
  • (bool) True if caller is within loop, false if loop hasn't started or ended.
Defined at:

Description

Determines whether the caller is in the Loop.

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

wp_find_hierarchy_loop, signup_another_blog, get_theme_root, _n_noop, install_themes_upload

Top Google Results

User discussions

wpseek mobile