How do I exclude categories from this qs?
-
<?php
$numposts = $wpdb->get_var(“SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = ‘publish’ AND post_type = ‘post'”);
if (0 < $numposts) $numposts = number_format($numposts);
?>
- The topic ‘How do I exclude categories from this qs?’ is closed to new replies.