[英]Use theme in a custom folder in wordpress
I would like to use a theme in a specific folder and display the header of the theme 我想在特定文件夹中使用主题并显示主题的标题
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( '../../wp-blog-header.php' );
get_header();
I have these error : 我有这些错误:
open_basedir restriction in effect. open_basedir限制有效。 File(F:\\xampp\\htdocs\\fredon\\wp-blog-header.php) is not within the allowed path(s)
文件(F:\\ xampp \\ htdocs \\ fredon \\ wp-blog-header.php)不在允许的路径内
尝试加载wp-load文件,例如:require(dirname( FILE )。'/wp-blog-header.php');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.