我不知道如何获取附件的日期。我获取附件如下:
$attachments = get_children(array('post_parent'=>$post->ID, 'post_type'=>'attachment', 'post_mime_type'=>'image'));
foreach ( $attachments as $attachment ) {
//I want to get the date of the attachment
}
有任何想法吗?感谢您的关注!