How to change the number of posts shown?

Community Forums Forums Design Tips and Tricks How to change the number of posts shown?

This topic is: not resolved

This topic contains 5 replies, has 5 voices, and was last updated by  Bauhinia 1 year, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5594

    mightymaze
    Participant

    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

    #5604

    Anita
    Participant
    Post count: 7560

    You need to go to your Reading section under Settings and change it there as well.


    When asking for help, please provide a link or screen shot showing your problem!
    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me!

    #5605

    mightymaze
    Participant

    @anitac

    you´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? :-)

    #5606

    Susan
    Moderator
    Post count: 8731

    you 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 1 year, 8 months ago by  Susan.
    • This reply was modified 1 year, 8 months ago by  Susan.
    #6643

    mariafernandez
    Participant
    Post count: 18

    Thanks. 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).

    #19272

    Bauhinia
    Participant
    Post count: 18

    Thank you, I used this solution for the Balance theme.

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

You must be logged in to reply to this topic.