• 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

Using Manual Excerpt if exists with custom grid loop

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 › Using Manual Excerpt if exists with custom grid loop

This topic is: not resolved

Tagged: Excerpt, grid loop

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 6 months ago by Christoph.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 23, 2015 at 9:24 am #174641
    preahkumpii
    Member

    I'm building my own Genesis child theme. I am wanting to use the manual post excerpt in place of $the_excerpt in the Genesis loop (with $the_excerpt as a fallback). I have found the place in the Genesis theme settings in the admin area of WordPress to choose this. However, when I use my custom grid loop for my home.php and archive.php files, Genesis reverts back to $the_excerpt and does not honor my selection under "Content Archives" to display "Entry Excerpts" in the admin area. Can you please tell me how to apply a filter to show the manual post excerpt if one exists in the post? I also would like to preserve the "Read More" link at the end of the excerpt. I have searched the documentation for more options for the grid loop but have found none.

    Again, I am NOT looking for the theme setting to show post excerpts. I know about that already. I'm looking for the way to display the manual excerpts while using a custom grid loop.

    Here's my code:

    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'child_grid_loop_helper' );
    function child_grid_loop_helper() {
      if ( function_exists( 'genesis_grid_loop' ) ) {
    		genesis_grid_loop( array(
    			'features' => 1,
    			'feature_image_size' => 'full',
    			'feature_image_class' => 'grid-first-featured',
    			'feature_content_limit' => 300,
    			'grid_image_size' => 'grid-thumbnail',
    			'grid_image_class' => 'grid-featured',
    			'grid_content_limit' => 100,
    			'more' => __( 'Continue Reading', 'genesis' ),
    		) );
    	} else {
    		genesis_standard_loop();
    	}
    }
    genesis();
    http://preahkumpii.com/pst-test
    December 27, 2015 at 6:18 pm #174912
    Christoph
    Member

    Hi,

    Bill Erickson has a great tutorial on this:

    Customizing the Genesis Grid Loop Content


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

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