Word Press获取当前文章发布时间,获取当前文章发布时间归档链接
发布日期获取
$year = get_the_time( 'Y' );
$month = get_the_time( 'm' );
$day = get_the_time( 'd' );
格式化发布日期
get_the_time( 'Y年m月d日' ) ;
年存档链接
get_year_link( $year );
月存档链接
get_month_link( $year, $month );
日存档链接
get_day_link( $year, $month, $day );
作者:徐文焱