Override number of blog posts on home page
-
Hi everyone. This is my first post in this support forum.
My page is using the theme “Kale Child”.
Context
Under the ‘Blog’ menu items (which I have renamed to ‘Categories’) have roughly 20 different posts divided into 6 categories. Some categories have 6-7 blog posts at the moment, with more to come. I need each category to always show all blog posts under that category.I know I can achieve this by setting the ‘Blog pages show at most’ setting (Settings > Reading) to – say – 100. However, that has the unfortunate side effect of then cluttering my home page which would then show all blog posts. And I want the home page to only show the latest 4.
My ask
I believe it should be possible to write some CSS which would allow me to only show the latest 4 posts on the front page even if the ‘Blog pages show at most’ setting is set to 100. Would someone be able to help me write that?The page I need help with: [log in to see the link]
- The topic ‘Override number of blog posts on home page’ is closed to new replies.