In the recent past, the WordPress developer community has been enlightened as to the dangers of query_posts()
and embraced new WP_Query()
. Now, let’s take a deeper dive into WP_Query
and its helpers, WP_Tax_Query
, WP_Meta_Query
, and WP_Date_Query
. From arguments to SQL to hooks, we’ll take a look at how to get just the posts you want.