Revision: 23946
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 17, 2010 05:10 by m-pokrovskii
Initial Code
<?php #exclude children category $get_childs = get_categories('child_of='.$cat); $q_cat = "cat=$cat"; foreach ($get_childs as $cat_child) { $q_cat .= ",-$cat_child->cat_ID"; } $query = new WP_Query($q_cat); ?>
Initial URL
pokrovskii.com
Initial Description
Initial Title
Wordpress. Exclude children category
Initial Tags
wordpress
Initial Language
PHP