get_queried_object()

This article’s visually long (a lot of images), so here’s a navigation guide: General description of get_queried_object(). What get_queried_object() returns on various kinds of webpages on your site. Some practical uses of get_queried_object(). What get_queried_object() Does: It’s Fuzzy Thinking Time! Before we go further: To understand the material below, you’ll want a basic understanding of WP_Query (enough to know what a “WordPress query” is in general), and … Read more

Show Buttons
Hide Buttons