wordpress - Calling manually wp-load.php in conjunction with qtranslate-x I get file not found -
i have custom php code outside of wp-content of wordpress, ie www.xyz.com/test
calling code below works fine, if enable qtranslate-x add language literal ie www.xyz.com/fr/test result "404 file not found."
require_once($_server['document_root'].'/wp-load.php');
what can resolve problem ?
do need plugins when loading wordpress core? core load minimum configuration (without plugins , themes):
define('shortinit', true); require_once($_server['document_root'].'/wp-load.php');
if need theme support can trick:
define('wp_plugin_dir', ''); require_once($_server['document_root'].'/wp-load.php'); /* start theme */ get_header(); the_content(); get_footer();
all code in functions.php should loaded fine
YouTube video - videoodl.cc
ReplyDeleteYouTube videos in 1080p : videosl.cc. The popular YouTube channel for movies is YouTube Live, youtube video to mp3 converter which was broadcast in the United Kingdom from 2007 onwards.