Migrating mysqli query to wp_query September 24, 2022 by Tarik Billa On the url below you can find all the information that you need regarding wp_query. https://codex.wordpress.org/Class_Reference/WP_Query