• Resolved nycklesijtsma

    (@nycklesijtsma)


    Hi!

    First of all, I love the theme man.
    I will absolutely buy you a drink after my portfolio site is finished.
    This is what I’ve created with Maker this far.

    Today I ran into a little problem concerning the ‘posts_per_page’ option.

    I would like to change the number of the posts that show up on the homepage to a number as high as possible. The pagination is great, but I fear that people won’t see that there’s another page.

    So I went into ‘templates/portfolio-toolkit.php’ and set the value of $posts_per_page to 18. Like this:

    // Default posts per page option.
    $posts_per_page = get_option( 'posts_per_page', 18 );

    The problem is, it doesn’t change anything. It shows 10 projects and it shows that there’s a second page, which isn’t clickable. I’m using Portfolio Toolkit (not Jetpack) by the way, so that’s not the problem.

    Do you know what could be the problem here?

    Thanks for your time.

    Kind regards,

    Nyckle Sijtsma

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Dmitry Mayorov

    (@iamdmitrymayorov)

    Hi, Nyckle!

    First of all, thank you for the kind words and a review, really means a lot to me!

    Secondly, If you are making any changes, make sure you are doing that through a child theme, to ensure that your changes stay intact when the theme gets updated.

    As for your question about posts per page, you can simply change the number of posts in the dashboard under Settings -> Reading. See screenshot for details: https://monosnap.com/file/RRQZvyU9WMVhZU0P4L6YNYi55mK8Ha

    That should do the trick ??

    Thread Starter nycklesijtsma

    (@nycklesijtsma)

    Hi Dmitry,

    Wow! It was that easy ??
    Thanks for your quick reply.
    Nicely coded into the WordPress Dashboard!

    I’ve seen a lot of WordPress themes, but none were as neatly coded and nicely minimalistic as this one.
    I’ve just bought Maker Pro, please buy yourself a beer on me ??

    Keep up the good work!

    All the best,

    Nyckle Sijtsma

    Theme Author Dmitry Mayorov

    (@iamdmitrymayorov)

    Thanks again, Nyckle!

    Will do! Let me know if you have any other questions.

    Best Regards!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pagination and $posts_per_page issue’ is closed to new replies.