我需要在帖子中显示消息,但从发布日期起一个月后。
我试着在问你之前做到,但我做不到
这是我的密码
$publish_date = $post->post_date_gmt;
$today = date(\'d-m-Y h:i:s\');
$nextMonth = mktime(0 , $publish_date(\'m\')+1 , 0 , 0 , 0,0);
echo \'Publish Date:\'.$publish_date.\'<br/>\';
echo \'Today Date:\'.$today.\'<br/>\';
echo \'Next Month:\'.$nextMonth;
if($today => $nextMonth){
echo \'One Month or more for publish post\';
} else {
echo \'\';
}