Problem on wpdb queries, wp_insert_post, wp_insert_user etc. The query runs twice
I resolved my similar issue (see below code block) by modifying the path to wp-load.php. Actually I used Frankie Jaret’s uri parse script which really only works on the default install but, meh, that’s what I use. I’m sure you can find a function that will parse it out where ever it may reside. Code … Read more