Skip to content

Instantly share code, notes, and snippets.

View takali's full-sized avatar

Thomas Lambert takali

View GitHub Profile
@karlazz
karlazz / WordPress Standalone PHP
Last active June 14, 2021 01:30
Running WordPress functions as a standalone php file
<!DOCTYPE HTML>
<!-- attribution -- this blog provided the code
http://blog.makingsense.com/2011/03/create-stand-alone-web-pages-or-widgets-that-use-wordpress-functions/
-->
<?php
//required include files
require('wp-blog-header.php');
require_once("wp-config.php");
require_once("wp-includes/wp-db.php");