Is the query the main query?
16629
Continue readingRetrieve ID of the current queried object. Wrapper for $wp_query->get_queried_object_id()
9629
Continue readingRetrieve the currently-queried object. Wrapper for $wp_query->get_queried_object()
9627
Continue readingDestroy the previous query and set up a new query.This should be used after query_posts() and before another query_posts(). This will remove obscure bugs that occur when the previous wp_query object is not destroyed properly before another is set up.
4057
Continue reading