1

Must be used inside the loop $post_images = get_children( $post->ID ); $images_count = count( $post_images ); echo $images_count;


Only top voted, non community-wiki answers of a minimum length are eligible