Wp foreach loop edited