WP_Query cheat sheet

Playground

Starting WordPress…

Set $args to an array, or build $query = new WP_Query( … ) yourself. The code runs as PHP inside a real WordPress 7.1 running in your browser. Nothing is sent to a server.

Run a query to see the matching posts.

The WordPress site your queries run against.