• 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

Different exceprt length for featured and normal posts in the grid

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 › Different exceprt length for featured and normal posts in the grid

This topic is: not resolved

Tagged: Excerpt, grid, posts

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 6 months ago by nutsandbolts.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 22, 2013 at 8:58 am #68197
    danharding
    Member

    Hi,

    i saw this snippet for excerpt modification.

    Post Excerpts

    //* Modify the length of post excerpts
    add_filter( 'excerpt_length', 'sp_excerpt_length' );
    function sp_excerpt_length( $length ) {
    return 50; // pull first 50 words
    }

    But how do i change the length of featured blog posts only in the grid?

    Cheers
    Dan

    http://www.indulgemagazine.com.au
    October 22, 2013 at 9:52 pm #68335
    nutsandbolts
    Member

    If you look at the home.php file for Modern Blogger Pro, you should see something similar to this (assuming the grid is part of the theme and you aren't using the grid plugin):

    add_action( 'genesis_loop', 'nabm_grid_loop_helper' );
    function nabm_grid_loop_helper() {
    
    	if ( function_exists( 'genesis_grid_loop' ) ) {
    		genesis_grid_loop( array(
    			'features' 				=> 0,
    			'feature_image_size' 	=> 'featured',
    			'feature_image_class' 	=> 'post-image',
    			'feature_content_limit' => 0,
    			'grid_image_size'		=> 0,
    			'grid_image_class'		=> 'alignnone',
    			'grid_content_limit' 	=> 250,
    			'more'					=> __( 'Keep reading...', 'nabm' ),
    		) );
    	} else {
    		genesis_standard_loop();
    	}

    You can change the values for the feature content limit and grid content limit to whatever you want. You may also need to change your Genesis theme settings to show the content limit instead of excerpts. Hope that helps!


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

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

© 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