What is the correct way to use WordPress functions outside WordPress files?

There’s little difference between the files. When you view a WordPress page, the first file called is index.php. And it is, essentially, your “Method 1:” define(‘WP_USE_THEMES’, true); /** Loads the WordPress Environment and Template */ require (‘./wp-blog-header.php’); The blog header file (that queues up the rest of WordPress) loads wp-load.php directly and fires up WordPress … Read more