Site logo

[Support request] Change Amount of Posts Displayed on Subsequent Pages (Request or Help)

Home Forums Support [Support request] Change Amount of Posts Displayed on Subsequent Pages (Request or Help)

Home Forums Support Change Amount of Posts Displayed on Subsequent Pages (Request or Help)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1979528
    Michael

    My front page is set up so that it lists the first 5 blog posts. The first post is always featured, taking up the entire width thanks to a setting in Layout > Blog. The problem is that on subsequent pages, (from page 2 and onward), it lists all posts as regular sized and I end up with one post by itself on the bottom. I was wondering if there was a way to make page 2 and onward display 6 posts (or any other even number) so I wouldn’t have that problem.

    #1979738
    Elvin
    Staff
    Customer Support

    Hi Michael,

    You’ll need to filter the post loop for this.

    See this explanation on how to do it –
    https://stackoverflow.com/a/25465332

    Here’s how to add PHP – https://docs.generatepress.com/article/adding-php/

    #2542347
    Dan

    I have the same issue. I tried using the PHP and it did not work. Any chance there is an easier fix for this?

    #2542504
    David
    Staff
    Customer Support

    Hi there,

    this kind of change will require some code as it requires messing with the WP Query.
    And this code will depend on how you’re displaying those posts.

    If you can raise a new topic, where you can share a link to your site, i will take a look

    #2542553
    Dan

    will do, thanks very much David

    #2542914
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.