Tag Archives: id3c029701dd5608ad011b891f93b1e2f4

wp_count_attachments

Count number of attachments for the mime type(s).If you set the optional mime_type parameter, then an array will still be returned, but will only have the item you are looking for. It does not give you the number of attachments that are children of a post. You can get that by counting the number of children that post has.

3497

Continue reading