Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/279.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 如何在posts数据表wordpress插件上显示过期后插件_Php_Jquery_Mysql_Wordpress - Fatal编程技术网

Php 如何在posts数据表wordpress插件上显示过期后插件

Php 如何在posts数据表wordpress插件上显示过期后插件,php,jquery,mysql,wordpress,Php,Jquery,Mysql,Wordpress,我正在使用posts数据表WordPress插件和im来处理WordPress 过期后插件我想在WordPress数据表中显示过期后的数据 $post_data_trans = array( '{id}' => $_post->ID, '{title}' => $title, '{category}' => get_the_category

我正在使用posts数据表WordPress插件和im来处理WordPress 过期后插件我想在WordPress数据表中显示过期后的数据

                $post_data_trans = array( 
                '{id}' => $_post->ID, 
                '{title}' => $title, 
                '{category}' => get_the_category_list( ', ', '', $_post->ID ), 
                '{date}' => get_the_date( $date_format, $_post ),
                '{expiring}' => get_the_date( $date_format, $post_id, 'expire_date' ),
                '{author}' => $author, 
                '{content}' => $this->get_post_content( $args['content_length'] ) 
            );
这是posts数据表wordpress插件的代码,我使用的是Post expiring插件中的expiring列,这是Post expiring的代码

if( $column_name === 'expiring' ){
        $postexpired = get_post_meta( $post->ID, 'postexpired', true );
        if( preg_match("/^\d{4}-\d{2}-\d{2}$/", $postexpired) ) {
            $postexpired .= ' 00:00';
        }
        echo !empty($postexpired) ? $postexpired : __('Never');
    }
我只知道邮寄日期,不是截止日期,请任何人都能帮我