WordPress as a backend only. How to output database content on public side without WordPress?

I’m a bit of a PHP MySQL newb but i feel i need to bypass WordPress for the frontend of a site i’m building (it is mainly just RSS and JSON feeds). I was wondering if there are any tutorials or advice I should follow on this or just cut straight to it?

Related posts

Leave a Reply

2 comments

  1. You want to include wp-load.php at the beginning of your script/page like this :

    require_once("/path/to/wordpress/wp-load.php");
    

    You then have access to any WP functions. To manipulate the DB directly, have a look at wpdb.

  2. You can even include wp-load.php without having it load the theme related files and functions to reduce the load.

    define('WP_USE_THEMES', false);
    require_once('path/to/wordpress/wp-load.php')