• Hello!
    This grid shows all posts you write (https://modernthemes.net/demo/blackandwhite/)
    You can set a limit number of posts in the ‘Blog pages show at most’ dashboard option, so when you access the Blog page or categories archives, the theme displays older/new post icons at the end, when you reach the limit number you set.
    But the problem is the home’s grid, which displays all the blog posts. So if you have written 13 posts (https://modernthemes.net/demo/blackandwhite/), all of them are displayed. If you have written 3000 posts, you will have an endless scrolling page displaying 3000 posts.
    I’m thinking about Pagenavi plugin but the problem is only in home page.
    Could I edit something to limit home´s grid posts number?
    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Thread Starter Rodri47

    (@rodri47)

    I tested the WP-PageNavi plugin, trying to force a page limit to home’s grid but doesn´t work.
    Also, if I put <? php wp_pagenavi (); ?> at the beginning of the footer.php file, just pages all the blog files: index, pages…
    I have been unable to find where (php or css template related to the home page) the code should be placed to only affect the homepage.
    Anyway, when you place it in footer.php, 35 posts writen and 35 are displayed. Of course, a nice 1 indicates that you are on page 1 (never will show a number 2).
    So, when you reach the home’s grid bottom (https://modernthemes.net/demo/?theme=Black%20and%20White) the + (plus) symbol appears. All it does is take you to the blog page and that displays chronologically all the 35 posts that you watch in home.
    There must be some way to limit the grid’s posts number, but I have no idea.

Viewing 1 replies (of 1 total)
  • The topic ‘Limit number of posts in Home’s grid’ is closed to new replies.