Files: <?php echo $wpdb->get_var( “SELECT COUNT(*) FROM $wpdb->posts WHERE post_parent = ‘$post->ID’ AND post_type = ‘attachment'” ); ?> |
Files: <?php echo $wpdb->get_var( “SELECT COUNT(*) FROM $wpdb->posts WHERE post_parent = ‘$post->ID’ AND post_type = ‘attachment'” ); ?> |