Hide Custom Taxonomy title if not associated with another Custom Taxomony

I found my answer from another site after hours of searching! – http://wpquestions.com/question/showChrono/id/10819 <?php // List posts by the terms for a custom taxonomy of any post type $post_type=”product”; $tax = ‘products’; $tax_args = array( ‘order’ => ‘DESC’, ‘parent’ => 0 ); // get all the first level terms only $tax_terms = get_terms( $tax, $tax_args … Read more

get_terms not working when child_of is used

I got it solved on my own so, wanted to answer my own question. in options table the results are cached, so I queried it and delete that. SELECT * FROM `wp_options` WHERE `option_name` like ‘%department%’ department is my taxonomy name here. You can check the function _get_term_hierarchy in taxonomy.php in wp-includes folder.

Get count for all terms inside a parent term

I don’t know why that code didn’t work for you. I copy that code and it work exactly as I expected. You should double check your case, did you unset $args variable before, or you can use another name ($agrs2 for example). Another problem in you question is: if pad_counts doesn’t work, you will get … Read more