/>
-1, // 全件 'post_type' => 'attachment', 'orderby' => 'ID', 'order' => 'DESC', 'post_status' => null, 'post_parent' => null )); foreach( $get_posts as $val ) { if( stripos( $val->post_mime_type, 'image/' ) === 0 ) { $attachments[] = $val->ID; } } $post_count = count( $attachments ); unset( $get_posts, $attachments ); ?>