Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/233.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
Php wpp_get_mostpopular()函数有问题,函数未处理参数_Php_Wordpress - Fatal编程技术网

Php wpp_get_mostpopular()函数有问题,函数未处理参数

Php wpp_get_mostpopular()函数有问题,函数未处理参数,php,wordpress,Php,Wordpress,我试图让我最受欢迎的帖子以自定义格式出现。代码如下: <div class="mostviewed"> <h1>HOTTEST STORIES</h1> <?php $popular = array( 'header_start' => '', 'header' => '',

我试图让我最受欢迎的帖子以自定义格式出现。代码如下:

    <div class="mostviewed">
            <h1>HOTTEST STORIES</h1>
            <?php
                $popular = array(
                  'header_start' =>  '',
                  'header' => '',
                  'header_end' => '',
                  'range' => 'daily',
                  'limit' => 4,
                  'post_type' => 'post',
                    'wpp_start' => '<ul>',
                    'wpp_end' => '</ul>',
                    'post_html' => '<li><a href=\"{url}\">{thumb}</a><p>{text_title}</p></li>');
               wpp_get_mostpopular($popular);
            ?>
        </div>

热门故事
但是,当我运行脚本wpp_get_mostpopular()时,它无法识别我的任何参数,并且我得到了一个默认输出