• 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

Only Showing One Post on Front Page

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 › Only Showing One Post on Front Page

This topic is: not resolved

Tagged: front page

  • This topic has 3 replies, 2 voices, and was last updated 11 years, 12 months ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • May 21, 2014 at 1:32 pm #106201
    bsw001
    Member

    Hello,

    I'm using a custom Genesis theme and have a question about posts appearing on the front page on my site (letsgocu.com).

    Currently, only the summary for the latest post appears on the front page. All posts do appear in the blog, however.

    My Reading Settings are set to show Your Latest Posts and Blog Pages Show at Most is set to 10 posts.

    Can anyone please let me know how to set it so a set number of blog post summaries (five would be ideal) show on the front page at any time?

    Thanks!
    Brian

    http://www.letsgocu.com
    May 21, 2014 at 1:40 pm #106204
    Brad Dalton
    Participant

    Depends on the code in your front-page.php or home.php file and the WordPress Reading settings and the Genesis > Theme Settings.

    Otherwise you could try this code in your functions file:

    function set_post_limit_home($query) {
    if ($query->is_home() AND $query->is_main_query()) {
     $query->set( 'posts_per_page', 5 );
    	}
    }
    add_action('pre_get_posts', 'set_post_limit_home');
    

    Tutorials for StudioPress Themes.

    May 21, 2014 at 1:45 pm #106206
    bsw001
    Member

    Thanks, Brad. Here is the front-page.php. Is there anything I should be looking for?

    <?php
    
    /**
    
     * This file adds the Home Page to the Magazine Pro Child Theme.
    
     *
    
     * @author StudioPress
    
     * @package Magazine Pro
    
     * @subpackage Customizations
    
     */
    
    add_action( 'genesis_meta', 'magazine_home_genesis_meta' );
    
    /**
    
     * Add widget support for homepage. If no widgets active, display the default loop.
    
     *
    
     */
    
    function magazine_home_genesis_meta() {
    
    	if ( is_active_sidebar( 'home-top' ) || is_active_sidebar( 'home-middle' ) || is_active_sidebar( 'home-bottom' ) ) {
    
    		// Force content-sidebar layout setting
    
    		add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );
    
    		// Add magazine-home body class
    
    		add_filter( 'body_class', 'magazine_body_class' );
    
    		// Remove the default Genesis loop
    
    		remove_action( 'genesis_loop', 'genesis_do_loop' );
    
    		// Add homepage widgets
    
    		add_action( 'genesis_loop', 'magazine_homepage_widgets' );
    
    	}
    
    }
    
    function magazine_body_class( $classes ) {
    
    	$classes[] = 'magazine-home';
    
    	return $classes;
    
    	
    
    }
    
    function magazine_homepage_widgets() {
    
    	genesis_widget_area( 'home-top', array(
    
    		'before' => '<div class="home-top widget-area">',
    
    		'after'  => '</div>',
    
    	) );
    
    	genesis_widget_area( 'home-middle', array(
    
    		'before' => '<div class="home-middle widget-area">',
    
    		'after'  => '</div>',
    
    	) );
    
    	genesis_widget_area( 'home-bottom', array(
    
    		'before' => '<div class="home-bottom widget-area">',
    
    		'after'  => '</div>',
    
    	) );
    
    }
    
    genesis();

    May 21, 2014 at 10:37 pm #106257
    Brad Dalton
    Participant

    You may have a recent posts or Genesis Featured Posts widget populated in one of your front page widget areas.

    You can change the widget settings to display 5 posts using the Genesis Featured Posts widget in the Home Bottom widget area.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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

© 2026 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