Cast POSTS_PER_PAGE to integer to prevent 500 error on index page.