在函数中添加此代码。php文件
add_filter( \'the_title\', \'ta_modified_post_title\');
function ta_modified_post_title ($title) {
global $post;
$mynewdate = strtotime($post->post_date);
$title = $title.\'<span class="modified">\'.date(\'Y\',$mynewdate).\'</span>\'.\'-<span class="modified">\'.date(\'d\',$mynewdate).\'</span>-\'.\'<span class="modified">\'.date(\'m\',$mynewdate).\'</span>\';
return $title;
}
按自己的方式修改日期。