• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

[Minimum] Set homepage number of post

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › [Minimum] Set homepage number of post

This topic is: not resolved

Tagged: homepage, minimum, number of post

  • This topic has 10 replies, 2 voices, and was last updated 13 years ago by matteoduo.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • March 4, 2013 at 9:58 am #24060
    matteoduo
    Member

    Hi to all,

    I've just purchased the Minimum theme and I'd like to manage how many posts are shown on the homepage separately from those that can be reached from blog page.

    How can I set for example 6 blog post for the homepage while having 10 for the blog? If I simply change reading settings, both are affected.

    March 4, 2013 at 1:38 pm #24094
    Kraft
    Member

    Hi Matteo,

    Add this code to the end of your functions.php file in the minimum folder:

    Then you can adjust the value (currently 15) to however many posts you'd like. The value of 10 from the Settings->Reading will not impact this.

    Cheers!


    Brandon Kraft
    Volunteer
    Blog | Twitter
    Genesis eNews Extended Support

    March 5, 2013 at 9:35 am #24303
    matteoduo
    Member

    Hi Kraft,

    what code are you talking about? I can't see anything...

    March 5, 2013 at 9:44 am #24306
    matteoduo
    Member

    Adding info:

    on the demo homepage you can see 6 post while in the blog "homepage", you can count 5 posts.

    Homepage: http://demo.studiopress.com/minimum/

    Blog: http://demo.studiopress.com/minimum/templates/blog/

    How can I do this?

    March 5, 2013 at 11:17 am #24327
    Kraft
    Member

    Sorry Matteo—either the forum stripped the link or I pasted it badly. Either way possible.

    The code in the gist above, in your functions.php of minimum, let's you control, specifically, the number of posts on the home page. The example is at 15, you can change that as you desire.


    Brandon Kraft
    Volunteer
    Blog | Twitter
    Genesis eNews Extended Support

    March 5, 2013 at 11:18 am #24328
    Kraft
    Member

    What the hell. I pasted it again. https://gist.github.com/kraftbj/5084781


    Brandon Kraft
    Volunteer
    Blog | Twitter
    Genesis eNews Extended Support

    March 5, 2013 at 2:43 pm #24388
    matteoduo
    Member

    Thanks Kraft,
    I was able to get the gist through the email notification.

    Problem is the new value (my desired # of posts) is shown both in homepage and homepage.com/blog.

    March 5, 2013 at 2:48 pm #24389
    Kraft
    Member

    Huh. It shouldn't do that.

    (ref: http://sp.brandonkraft.net/ showing 2 and http://sp.brandonkraft.net/templates/blog/ showing 10 per Settings->Reading).

    Can you send the links to your actual site? Have you made any additional modifications to Minimum beyond this?


    Brandon Kraft
    Volunteer
    Blog | Twitter
    Genesis eNews Extended Support

    March 5, 2013 at 2:56 pm #24393
    matteoduo
    Member

    @Kraft: yep, that's what I'd like my website to be.

    Since my website is behind a login, I've create login data:

    http://www.matteoduo.com
    Kraft
    studiopress

    Let me know.

    March 6, 2013 at 9:49 pm #24725
    Kraft
    Member

    I can't duplicate the behavior I'm seeing on your site and not sure why.

    Trying to think of routes to check:

    1. Have you made any other modifications to Minimum's function.php or other php files?

    2. Have you double-checked the Setting->Readings is set to what you'll like to see on the blog template.

    3. Confirm that the blog page is a page with the blog template set on the right side of the page edit screen.

    :-/


    Brandon Kraft
    Volunteer
    Blog | Twitter
    Genesis eNews Extended Support

    March 7, 2013 at 2:41 am #24749
    matteoduo
    Member

    @Kraft:

    1) Some modifications but not about displaying posts. Checked it and no open { or } left.

    2) Yep. Have a look a this screenshot: http://goo.gl/URuFa

    3) I confirm.

    I don't know how to get out from this (dumb) nightmare. Please help me.

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble