using tptn_pop_posts function insead of custom sql statement