Removed the WordPress dependency for displaying posts per page.