• Hello. I wanted to know how can I set the number of entries (post) in the home ( for ex. maximum 10) and then when you clic in the button “see more” you can see in the gallery all the entries.
    Currently the home is showing all entries but i cant make it show just the ten firsts.
    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • It’s configurable via Settings → Reading which will effect all archive (listing) page, e.g. index(blog home), category archive, tag archive, search result.
    https://codex.www.ads-software.com/Settings_Reading_Screen

    There are also plugin solutions

    here is one example
    https://www.ads-software.com/plugins/custom-posts-per-page/

    Thread Starter lino_karyn

    (@lino_karyn)

    Thanks for your answer, but the first option via Settings, reading, it does not work. It is set at 9 but the home show all of them (16)
    And the second option, with the plug in, it says that it doesnt work with static home, only when your home function as a blog.
    So any ideas??

    Thankss

    Hi lino_karyn, I thought that you refered to the normal blog home which the setting will work but it seems you are using theme’s Page Template called “Home Page” for a page that is set as staic front home page. If that’s the case then the Settings → Reading won’t work because the template explicitly defines its own number of posts to 20.

    So the only way that I know of is to create a child theme and override page-home.php template and change the ‘posts_per_page’ from 20 to 10.

    Another possible solution is to use CSS to display none all except the first 10, but since theme use js to position the post (Masonry style) I am not sure if this would work.

    Try this via Custom CSS plugin

    .page-template-page-home .gridsby.infinite-scroll figure:nth-child(n+10) {
    	display: none;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to set maximum entries in home’ is closed to new replies.