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


Comments

  1. YouTube video - videoodl.cc
    YouTube 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.

    ReplyDelete

Post a Comment

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -