Community Forums › Forums › Design Tips and Tricks › How to change the number of posts shown?
This topic contains 5 replies, has 5 voices, and was last updated by Bauhinia 3 months, 1 week ago.
-
AuthorPosts
-
December 16, 2012 at 2:21 pm #5594
Dear fellow Genesis & eleven40 users
I am currently setting up my personal blog using the Genesis framework as well as the great eleven40 theme.
I would like my “main page” to show the latest plus four older postings. Using Google, I was able to find out that adding “posts per page” to the home.php should help. Here´s what my home.php currently says:
<?php
remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );
add_action( ‘genesis_loop’, ‘eleven40_grid_loop_helper’ );
/** Add support for Genesis Grid Loop */
function eleven40_grid_loop_helper() {if ( function_exists( ‘genesis_grid_loop’ ) ) {
genesis_grid_loop( array(
‘features’ => 1,
‘feature_image_size’ => 0,
‘feature_image_class’ => ‘alignleft post-image’,
‘feature_content_limit’ => 0,
‘grid_image_size’ => ‘grid-thumbnail’,
‘grid_image_class’ => ‘alignnone’,
‘grid_content_limit’ => 250,
‘more’ => __( ‘[Continue reading]‘, ‘genesis’ ),
‘posts_per_page’ => 4
) );
} else {
genesis_standard_loop();
}}
genesis();
But it does not work as you can see on my website marcelwitczak.de – it shows more than 4 posts. What do I have to do to make it work? I would really appreciate any information!
While we´re at it – on the demo of the eleven40 theme they have good looking “next page” buttons on the bottom of the page – my theme only has the regular “previous posts” link there – how can I get those nice looking “next page” buttons?
Once again, thanks in advance for your time and effort to help me out:)
Best wishes from Germany
Marcel
December 16, 2012 at 3:04 pm #5604You need to go to your Reading section under Settings and change it there as well.
Twitter Handles: @thecre8tivediva | Website: Cre8tiveDiva.com | LinkedIn Group: http://goo.gl/nNe1m
Why Not Take The Challenge! – Help us answer some of the unanswered postsDecember 16, 2012 at 3:09 pm #5605you´re awesome! thanks a lot – wow, you happened to solve what the customer service was not able to do! thanks a lot!
you do not know the solution to my question about the next site buttons as well, do you?
December 16, 2012 at 3:14 pm #5606you do not know the solution to my question about the next site buttons as well, do you?
Dashboard > Genesis > Theme Settings > Content Archives > Select Post Navigation > Numeric
Susan @ Graphically Designing I’d love to customize your website! I tweet!
I’ve taken up the challenge! – help me answer some of the unanswered posts-
This reply was modified 5 months, 1 week ago by
Susan.
-
This reply was modified 5 months, 1 week ago by
Susan.
December 21, 2012 at 9:42 am #6643Thanks. I’ve now changed the number of posts to 10. In the Balance theme it appears that making the change in the home.php file is sufficient for all pages (at tleast the way I’ve got it set up).
February 9, 2013 at 1:39 pm #19272Thank you, I used this solution for the Balance theme.
-
This reply was modified 5 months, 1 week ago by
-
AuthorPosts
You must be logged in to reply to this topic.