Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to change the number of posts shown?
- This topic has 5 replies, 5 voices, and was last updated 13 years ago by
Bauhinia.
-
AuthorPosts
-
December 16, 2012 at 2:21 pm #5594
mightymaze
MemberDear 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 #5604AnitaC
KeymasterYou need to go to your Reading section under Settings and change it there as well.
Need help with customization or troubleshooting? Reach out to me.
December 16, 2012 at 3:09 pm #5605mightymaze
Memberyou´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 #5606Susan
Moderatoryou 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
December 21, 2012 at 9:42 am #6643mariafernandez
MemberThanks. 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 #19272Bauhinia
MemberThank you, I used this solution for the Balance theme.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.