如何将自定义字段转换为php日期格式? 时间:2018-02-11 作者:Pete 我有一个自定义字段,示例值为2018/02/28 16:21.如何将其转换为28th February 2018 at 16:21 1 个回复 SO网友:Pete Found it...$date = get_post_meta( $post->ID, \'CUSTOM-FIELD-HERE\', true ); if( $date != \'\' ) { echo date( "l jS F Y", strtotime( $date ) ); } 结束 文章导航