pre_get_posts is an action that makes it possible to modify an existing
WP_Query, before that query is actually run.
pre_get_posts offers some solutions that are more performant than writing a custom
WP_Query, and enables solutions to other problems that would be quite difficult otherwise.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed