Leave a Reply

2 comments

  1. Simply place

    define( 'WP_USE_THEMES', false );
    include 'wp-load.php';
    

    on to of your template files (before everything else). This loads the whole WP core.