fix pagination on portfolio and testimonial page when they are set as front page