WP_Query within function within WP_Query
Using wp_reset_query() really just makes sense if you are using query_posts(), which you don’t need and shouldn’t do – see When should you use WP_Query vs query_posts() vs get_posts()? . This means you should go with WP_Query and wp_reset_postdata() instead. Besides that you should give your custom, secondary queries a object, name differing from $query … Read more