Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

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.

share|improve this answer
    
Great thanks. Does it still produce the same server load to call wp-load.php as it does call a normal WP page? I'm guessing both this methods would cause more load then just writing straight PHP and MySQL to talk to the database. –  agileapricot Jul 26 '11 at 10:08
3  
Yes it would cause more server load (though how significant I don't know), if you want to dump WP completely, then you can just talk to the DB directly with default PHP functions. Here's the database description for WP. –  mike23 Jul 26 '11 at 10:17
add comment

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')
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.