Community Forums › Forums › Archived Forums › General Discussion › Blog page not showing latest posts
- This topic has 17 replies, 4 voices, and was last updated 10 years, 10 months ago by Anita.
-
AuthorPosts
-
June 12, 2013 at 2:38 pm #45549etocalinoMember
Hi There -
I have the homepage of my site set up to display 5 of the latest posts, but my blog page will only show 1 post. I've searched through the forums and I've tried to edit the Theme Settings as well as Settings>Reading and nothing has helped. Any help would be appreciated!
June 12, 2013 at 2:44 pm #45555Brad DaltonParticipantTry changing the settings in your home.php file to 5 posts per page
genesis_grid_loop( array( 'features' => 0, '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' => 5,
June 12, 2013 at 2:48 pm #45557etocalinoMemberHi Brad -
Thanks for the quick response! It already has that setting:
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' => 5,
) );June 12, 2013 at 2:49 pm #45558rfmeierMemberGood catch, Brad.
I was about to answer this. Would grabbing the 'posts_per_page' option work too?
genesis_grid_loop( array( 'features' => 0, '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' => get_option( 'posts_per_page' ), );
June 12, 2013 at 2:51 pm #45559rfmeierMemberWhat about settings features to the 'posts_per_page' value?
genesis_grid_loop( array( 'features' => get_option( 'posts_per_page' ), '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' => get_option( 'posts_per_page' ), );
June 12, 2013 at 3:04 pm #45561etocalinoMemberThanks Ryan -
Would I change both the 'features' and 'posts per page' like in your above answer?
June 12, 2013 at 3:13 pm #45562Brad DaltonParticipantDidn't know you could do that Ryan. Good answer. So does that make the reading settings determine how many posts are displayed per page?
I think the features number determines how many full width posts are displayed as opposed to posts in a 2 column grid?
June 12, 2013 at 3:49 pm #45567etocalinoMemberI adjusted this line of code and nothing happened:
'posts_per_page' => get_option( 'posts_per_page' ),
My posts per page is set up as 5 and it still isn't working:(
June 12, 2013 at 3:53 pm #45568etocalinoMemberIt's really strange, when I adjust any of the settings like:
Settings>Reading>Blog pages how at most ___posts
It only affects the home page and not the blog page.
June 12, 2013 at 4:35 pm #45576rfmeierMemberBrad,
I just confirmed it does pull the 'posts_per_page' form the Settings -> Reading setting.
I have the Pretty Theme of test a grid on and I was able to get this to work.
Are you able to post the code from the file with the genesis_grid_loop() ?
June 12, 2013 at 4:39 pm #45579etocalinoMemberHere is what I have. And like I said, it affects the home page, but the Blog page will still only show the most recent post:
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' => get_option( 'posts_per_page' ),
) );}
else {
genesis_standard_loop();
}June 12, 2013 at 6:09 pm #45592rfmeierMemberIs there also a blog template file?
The ‘features’ => 1 options will show one regular post and the rest will be grids. That option will need to be increased to show them all. That is why i set 'features' => get_option( ‘posts_per_page’ ) before.
June 12, 2013 at 8:02 pm #45609etocalinoMemberThere isn't a blog page template within the child theme - just Genesis. And the Genesis page_blog.php file doesn't look like I can edit.
Thanks for clarifying on the 'features'. I may use that in the future!
-Erin
June 13, 2013 at 1:46 am #45630Brad DaltonParticipantThe grid loop is hard coded into the child themes home.php file whereas the blog page template comes from Genesis so you can't edit it.
What you need to do is copy the home page grid and use it in a custom blog page template in your child theme if you want to display posts in a grid on your blog page.
Is this resolved?
June 13, 2013 at 2:12 pm #45730etocalinoMemberThanks Brad - I'll try to create the custom blog page template and see if that works. I appreciate your help!
It seems strange that since there is an actual Blog Page template option when creating a page from the Dashboard, that it wouldn't be a lot simpler!
June 13, 2013 at 4:27 pm #45763AnitaKeymasterNot that I am some wizard or guru... but for your Blog, what number do you have in Genesis > Theme Settings > scroll down to "Blog Page Template" and "Number of Posts to Show" ???
Love coffee, chocolate and my Bella!
June 18, 2013 at 7:17 pm #46668etocalinoMemberI have it set at 10, but that doesn't seem to affect either the blog page or the home page.
June 18, 2013 at 9:41 pm #46680AnitaKeymasterUse the contact box on my website and send me a note. Maybe I can help you offline. Include your time zone.
Love coffee, chocolate and my Bella!
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.