bringing loop in for each post