[Minimum] Set homepage number of post

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

This topic is: not resolved

This topic contains 10 replies, has 2 voices, and was last updated by  matteoduo 1 year, 8 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #24060

    matteoduo
    Participant
    Post count: 12

    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.

    #24094

    Kraft
    Participant
    Post count: 87

    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

    #24303

    matteoduo
    Participant
    Post count: 12

    Hi Kraft,

    what code are you talking about? I can’t see anything…

    #24306

    matteoduo
    Participant
    Post count: 12

    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?

    #24327

    Kraft
    Participant
    Post count: 87

    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

    #24328

    Kraft
    Participant
    Post count: 87

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


    Brandon Kraft
    Volunteer
    Blog | Twitter
    Genesis eNews Extended Support

    #24388

    matteoduo
    Participant
    Post count: 12

    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.

    #24389

    Kraft
    Participant
    Post count: 87

    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

    #24393

    matteoduo
    Participant
    Post count: 12

    @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.

    #24725

    Kraft
    Participant
    Post count: 87

    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

    #24749

    matteoduo
    Participant
    Post count: 12

    @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.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.