Is it possible to hide categories that contains less that X posts with WP options or if there are any plugins exist?
Is it possible to hide categories that contains less that X posts with WP options or if there are any plugins exist?
maybe is it possible not to show categories on posts pages? only at index?
please help
This lists categories with over 7 posts:
<?php
$min_post_cats = $wpdb->get_col("SELECT term_id FROM $wpdb->term_taxonomy WHERE taxonomy = 'category' AND count > 7");
$cats = implode(",", $min_post_cats);
echo 'cats ' . $cats;
$wlc_param_list='orderby=name&show_count=1&title_li=&include=' . $cats;
wp_list_categories($wlc_param_list);
?>This topic has been closed to new replies.