shortcode fix for list=2 and 3, additional checks for if the section has_posts