• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to change the number of posts shown?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

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

This topic is: not resolved

Tagged: limit blogs on home page, limit number of posts, posts on home page, posts per page

  • This topic has 5 replies, 5 voices, and was last updated 12 years, 5 months ago by Bauhinia.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • December 16, 2012 at 2:21 pm #5594
    mightymaze
    Member

    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 #5604
    AnitaC
    Keymaster

    You 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 #5605
    mightymaze
    Member

    @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? 🙂

    December 16, 2012 at 3:14 pm #5606
    Susan
    Moderator

    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

    December 21, 2012 at 9:42 am #6643
    mariafernandez
    Member

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

    February 9, 2013 at 1:39 pm #19272
    Bauhinia
    Member

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

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble