Problem with using wp-load.php outside of WordPress May 29, 2022 by Tarik Billa Including wp-load.php will not setup the WordPress query. See Integrating WordPress with Your Website for the right way.