Categories
CMS Mastering Development Wordpress

Limit posts only on home page – ideally in functions.php

I’d like to restrict the number of posts that show on my home page to 3, but have all the other archive, category, pagination pages, etc. at whatever number I set in the "reading" settings in the WordPress dashboard. Is there a nice way to do this in functions.php? I tried the following, which does […]