minor tweak to get_posts