Children Shortcodes?

This is possible, but you can only nest one level down, after that the shortcode regexp parser flips out. So your example would be okay, but [item1] would not be able to contain even more nested shortcodes. To enable nesting, just go ahead and do: add_shortcode(‘data’, function($attributes, $content=””) { return do_shortcode($content); } Relevant article: http://www.sitepoint.com/wordpress-nested-shortcodes/

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

WP_Query doesn’t works inside loop

try like this: if ($obj->have_posts()){ while($obj->have_posts()){ $obj->the_post(); $slug = get_the_tags(); $obj->the_title(); echo “<br/>”; $queryH = array(“cat”=>13,”order”=>”ASC”,”posts_per_page”=>-1,”tag__in”=>$slug); $objH = new WP_Query($queryH); if ($objH->have_posts()){ while($objH->have_posts()){ $objH->the_post(); $objH->the_title(); echo “<br/>”; } } } }