Good Day!
I have the same problem too. Using this line of code require_once(‘../wp-load.php’); is enough to use all of wordpress’ functions outside a wordpress site but doesn’t seem to work anymore on recent version of wordpress. As what have been mentioned by lance the script redirects to the wordpress home page.
Can someone help us with our problem? Hoping for a response from wordpress’ support team.
Thanks!