Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #397062

    I’m trying to load the WordPress core into my own separate script using:

    
        define('WP_USE_THEMES', false);
        require('../wp-blog-header.php');
    

    However, the theme doesn’t seem to like this and ends up erroring out as seen in the screenshot below. Any idea what is going wrong?

    #397137

    Hi ryanmortier!

    I’m not really sure why you would want to do that. I would try asking on the WordPress support forums, https://wordpress.org/support/. Since it’s more of a general WordPress question they will be able to help you out better.

    Regards,
    Elliott

    • This reply was modified 9 years, 8 months ago by Elliott.
    #397176

    Thanks, I ended up fixing it myself. The problem was the include code couldn’t be called within a function.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Can't load WordPress core without this theme throwing an exception.’ is closed to new replies.