Community Forums › Forums › Archived Forums › Design Tips and Tricks › Changing the Number of posts on the homepage in Balance theme
- This topic has 6 replies, 2 voices, and was last updated 11 years, 4 months ago by
CreativeKristi.
-
AuthorPosts
-
November 8, 2013 at 9:02 am #71672
CreativeKristi
MemberSo I've looked in all the usual places in the balance theme & I can't get the number of posts shown on the homepage to change. The demo shows five posts with one as the 'featured' or 'larger' post at the top. This makes it so that there are an even number of 'shortened' posts at the bottom.
On my client's site you can see that she has 10 posts with one post that is just 'hanging' at the bottom but page 2 shows an even number. I would like to change the homepage to show 11 posts so that there is one featured and 10 shortened posts under. I did NOT specify 10 posts to show up...they just did.I tried going to Theme Settings but changing the number of posts to show on the blog page template doesn't change the homepage.
I also tried going to Appearance-->editor-->home.php and changing the 'posts_per_page' to 11(it was set at 5 like the demo) but it did nothing on this homepage. There is nothing in the functions.php I can find for the homepage number of posts.
Ideas?
Running latest versions of wordpress, genesis and the child theme. No known plugin issues since I deactivated them all and turned them on one by one and none of them affected the homepage.
I work at Creative Kristi Designs
I play at Creative Kristi
Affordable. Beautiful. Personal. Custom. Design for everyone.November 8, 2013 at 12:03 pm #71703nutsandbolts
MemberIn the grid loop in your home.php, look at the number set for features and teasers. The number of features is the number of full length posts, and teasers is the number of grid posts. If you change that, it should change the number of posts that display. (The posts_per_page setting has been deprecated and no longer works from what I can tell.)
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+November 18, 2013 at 10:11 am #73951CreativeKristi
MemberAndrea,
You can see in my original post that I had already tried that. No matter, I got something else figured out.
Thanks though!
-Kristi
I work at Creative Kristi Designs
I play at Creative Kristi
Affordable. Beautiful. Personal. Custom. Design for everyone.November 18, 2013 at 10:16 am #73952nutsandbolts
MemberActually you said you changed the posts_per_page setting but didn't mention changing the number of features and teasers. Nonetheless, I'm glad you got it working.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+November 18, 2013 at 10:37 am #73959CreativeKristi
MemberCorrect--That's all that is in the home.php for changing posts. I didn't see anything else?
if ( function_exists( 'genesis_grid_loop' ) ) { genesis_grid_loop( array( 'features' => 1, 'feature_image_size' => 0, 'feature_image_class' => 'align none post-image', 'feature_content_limit' => 0, 'grid_image_size' => 'grid', 'grid_image_class' => 'align none post-image', 'grid_content_limit' => 0, 'more' => __( 'Continue reading...', 'genesis' ), 'posts_per_page' => 11, ) );
Am I just not seeing what you are talking about? If the post per page was depreciated then the other thing should be there correct?
I work at Creative Kristi Designs
I play at Creative Kristi
Affordable. Beautiful. Personal. Custom. Design for everyone.November 18, 2013 at 10:45 am #73960nutsandbolts
MemberWell, you do have the option to set the number of features:
genesis_grid_loop( array( 'features' => 1,
I just looked at a client site using the same older grid loop. It's getting the number of posts on the page from Settings > Reading (overriding the Genesis theme settings), then it displays the number of features set in the grid loop, followed by the difference between the two for the number of grid posts. So in this case, Settings > Reading is set to five and features are set to 1, so it's showing 1 full post and 4 grid posts. Hopefully that helps.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+November 18, 2013 at 10:55 am #73964CreativeKristi
MemberI see the featured posts setting but didn't see the 'teasers' setting you had mentioned. I had set the Reading settings to 11 as well and it didn't change anything--which is why I came here to ask what to do haha.
I ended up putting a fresh functions.php on the site for other reasons and changing the post_per_page worked after that. Oh well.
Thanks for the reply! 🙂
I work at Creative Kristi Designs
I play at Creative Kristi
Affordable. Beautiful. Personal. Custom. Design for everyone. -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.