Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress 3.6中的php错误_Php_Wordpress_Xampp_Wp List Categories - Fatal编程技术网

Wordpress 3.6中的php错误

Wordpress 3.6中的php错误,php,wordpress,xampp,wp-list-categories,Php,Wordpress,Xampp,Wp List Categories,我在Wordpress 3.5.2中有一段代码,可以很好地工作,但在3.6中显示类似文本(我也安装了Exec PHP)。也许是因为用$get_猫或类似的东西?重要的是,我正在与XAMPP合作本地项目 <?php $get_cats = wp_list_categories( 'echo=0&title_li=&depth=1&sort_column=name&show_count=0&hide_empty=0&show_option_all&

我在Wordpress 3.5.2中有一段代码,可以很好地工作,但在3.6中显示类似文本(我也安装了Exec PHP)。也许是因为用$get_猫或类似的东西?重要的是,我正在与XAMPP合作本地项目

<?php
$get_cats = wp_list_categories( 'echo=0&title_li=&depth=1&sort_column=name&show_count=0&hide_empty=0&show_option_all&child_of=0&exclude_tree=1&exclude=1,762,899,951' );
$cat_array = explode('</li>',$get_cats);
$results_total = count($cat_array);
$cats_per_list = ceil($results_total / 5);
$list_number = 1;
$result_number = 0;
?>

<ul id="category_footer_post" class="list-icon circle-no list-icon-color-dark list-icon-arrow" id="cat-col-<?php echo $list_number; ?>">

<?php
    foreach($cat_array as $category) {
    $result_number++;

    if($result_number % $cats_per_list == 0) {
    $list_number++;
    echo $category.'</li>
    </ul>

    <ul class="category_footer_post list-icon circle-no list-icon-color-dark list-icon-arrow" id="cat-col-'.$list_number.'">';

}

else {

    echo $category.'</li>';

    }

} ?>

</ul>



好的,Exec PHP在Wordpress 3.6中不起作用