Oops, repeated the loop for posts when it should be for pages