adding term testing for get_posts