Cómo conocer todas las variables del loop actual en WordPress:
print_r($wp_query->query_vars);
Este código devuelve una matriz con los siguientes elementos, que según la página en la que se llame a la variable, devolverá unos valores rellenos u otros:
Array ( [page] [integrantes] [post_type] [name] [error] [m] [p] [post_parent] [subpost] [subpost_id] [attachment] [attachment_id] [static] [pagename] [page_id] [second] [minute] [hour] [day] [monthnum] [year] [w] [category_name] [tag] [cat] [tag_id] [author_name] [feed] [tb] [paged] [comments_popup]; [meta_key] [meta_value] [preview] [s] [sentence] [fields] [category__in] = Array ( ) [category__not_in] = Array ( ) [category__and] = Array ( ) [post__in] = Array ( ) [post__not_in] = Array ( ) [tag__in] = Array ( ) [tag__not_in] = Array ( ) [tag__and] = Array ( ) [tag_slug__in] = Array ( ) [tag_slug__and] = Array ( ) [ignore_sticky_posts] = [suppress_filters] = [cache_results] = [update_post_term_cache] = [update_post_meta_cache] = [posts_per_page] = [nopaging] = [comments_per_page] = [no_found_rows] = [order] = )
Fácil y utilísimo para saber qué está ocurriendo en las tripas de la bestia. Lo vi en los infinitos foros de WordPress.