The WP_Query Generator outputs fully functional PHP code based on selections made within the Query Builder.

When a query has been generated you can copy and paste the code into a template file within your theme or choose to save the query using the Saved Query module.

The Easy Query generated WP_Query