Community Forums › Forums › Archived Forums › Design Tips and Tricks › [Minimum] Set homepage number of post
Tagged: homepage, minimum, number of post
- This topic has 10 replies, 2 voices, and was last updated 11 years, 10 months ago by matteoduo.
-
AuthorPosts
-
March 4, 2013 at 9:58 am #24060matteoduoMember
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 #24094KraftMemberHi 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 SupportMarch 5, 2013 at 9:35 am #24303matteoduoMemberHi Kraft,
what code are you talking about? I can't see anything...
March 5, 2013 at 9:44 am #24306matteoduoMemberAdding 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 #24327KraftMemberSorry 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 SupportMarch 5, 2013 at 11:18 am #24328KraftMemberWhat the hell. I pasted it again. https://gist.github.com/kraftbj/5084781
Brandon Kraft
Volunteer
Blog | Twitter
Genesis eNews Extended SupportMarch 5, 2013 at 2:43 pm #24388matteoduoMemberThanks 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 #24389KraftMemberHuh. 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 SupportMarch 5, 2013 at 2:56 pm #24393matteoduoMember@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
studiopressLet me know.
March 6, 2013 at 9:49 pm #24725KraftMemberI 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 SupportMarch 7, 2013 at 2:41 am #24749matteoduoMember1) 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.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.