• 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

Glam – Front-Page Edit # of posts

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 › General Discussion › Glam – Front-Page Edit # of posts

This topic is: not resolved

Tagged: front page, Glam, posts

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 3 months ago by Bren Pace.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 18, 2017 at 7:55 pm #203372
    Bren Pace
    Participant

    Hello!

    I'm trying to change the number of published blog posts it shows on the front-page. It's currently set up as this:

    //* Display centered wide featured image for First Post and left aligned thumbnail for the next five
    add_action( 'genesis_entry_header', 'glam_show_featured_image', 8 );
    function glam_show_featured_image() {
    if ( ! has_post_thumbnail() ) {
    return;
    }

    global $wp_query;

    if( ( $wp_query->current_post <= 0 ) ) {
    $image_args = array(
    'size' => 'large-featured',
    'attr' => array(
    'class' => 'aligncenter',
    ),
    );

    } else {
    $image_args = array(
    'size' => 'blog-square-featured',
    'attr' => array(
    'class' => 'alignleft',
    ),
    );
    }

    My client only wants 3 left side image posts to show. Can someone please help?

    http://sueglashower.com
    March 20, 2017 at 8:20 am #203457
    Victor Font
    Moderator

    The code you posted has nothing to do with the number of pages. You would would have to change the parameters passed to wp_query. Normally, this is done on the Genesis/Theme Settings page in the posts per page field. This field will change all of your archive and blog pages though. If you want to change only the front page, you need to customize the front-page query. This article will get you started in the right direction: http://www.genesissnippets.com/2012/09/15/genesis-custom-loop/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 20, 2017 at 8:47 am #203466
    Bren Pace
    Participant

    Thank you for your kind help.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ 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