attempting to get the previous/next button for posts to work correctly