Changing the Number of posts on the homepage in Balance theme

Community Forums Forums Design Tips and Tricks Changing the Number of posts on the homepage in Balance theme

This topic is: resolved

This topic contains 6 replies, has 2 voices, and was last updated by  CreativeKristi 1 year, 1 month ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #71672

    CreativeKristi
    Participant
    Post count: 23

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

    http://notyourmothersmenopause.com/
    #71703

    nutsandbolts
    Keymaster
    Post count: 3202

    In 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, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #73951

    CreativeKristi
    Participant
    Post count: 23

    Andrea,
    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.

    #73952

    nutsandbolts
    Keymaster
    Post count: 3202

    Actually 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, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #73959

    CreativeKristi
    Participant
    Post count: 23

    Correct–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.

    #73960

    nutsandbolts
    Keymaster
    Post count: 3202

    Well, 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, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #73964

    CreativeKristi
    Participant
    Post count: 23

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

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

You must be logged in to reply to this topic.