-1
我在当地环境中工作,现在正在我的客户端服务器上工作的Wordpress MU安装。他需要它垃圾邮件清理,更新等。WordPress的主题和PHP版本
问题是与其中一个网站使用它似乎是一个自定义的主题。尝试访问管理部分会将您带到一个空白页面,如果您访问该网站,您首先会收到“调用未定义的函数”错误。我设法解决它从功能中删除“&”,我得到显示的页面,除了它显示一个帖子应该显示的每个地方的“非法字符串偏移警告”。我迷路了。
问题是在这条线: get_template_part('content-'. $args['template']);
从该函数:
function the_loop($args = NULL){
global $IDS, $loop;
$loop = get_all_articles(&$args);
if ($loop->have_posts()) {
while ($loop->have_posts()) : $loop->the_post();
get_template_part('content-'. $args['template']);
$IDS[] = get_the_ID();
endwhile;
} else {
get_template_part('content-not-found');
}
wp_reset_postdata();
return $loop;
}
任何想法?? 谢谢!