• 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

Hide post content

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 › Hide post content

This topic is: not resolved

Tagged: generate, loop

  • This topic has 3 replies, 3 voices, and was last updated 9 years, 4 months ago by thoughtwell.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 24, 2013 at 5:07 pm #64029
    Charlie
    Member

    Hi,

    Here's the loop for home.php for the Generate theme:

    if ( function_exists( 'genesis_grid_loop' ) ) {
    		remove_action( 'genesis_before_post_content', 'generate_post_image', 5 );
    		genesis_grid_loop( array(
    			'features' => 2,
    			'feature_image_size' => 'featured',
    			'feature_image_class' => 'alignleft post-image',
    			'feature_content_limit' => 0,
    			'grid_image_size' => 'grid',
    			'grid_image_class' => 'alignleft post-image',
    			'grid_content_limit' => 0,
    			'more' => __( 'Continue reading...', 'genesis' ),
    			'posts_per_page' => 6,
    		) );
    	} else {
    		genesis_standard_loop();
    	}

    On the homepage, I don't want any post content to display: just the post title and the featured image. With the grid_content_limit set to 0, I understand this tells the theme to display the whole post, which is the very opposite of what I want...

    Thanks in advance.

    September 26, 2013 at 3:57 am #64265
    Sridhar Katakam
    Participant

    Do you still want the Features and teasers grid appear? Or, just the post title, post thumbnail for every post one below the other?


    Genesis Tutorials | Follow me on Twitter

    October 30, 2013 at 4:56 pm #70010
    thoughtwell
    Member

    Charlie, did you ever find any sort of answer for this? I am wondering how to do the same thing. I can't find this info, anywhere. I can see how to limit it to a specific number of characters, but I'm not sure of what value one would enter to achieve this effect. It could even be a string. Just not sure which one.

    October 30, 2013 at 5:07 pm #70012
    thoughtwell
    Member

    I found the answer. Set the grid_content_limit to the string, TRUE. This should remove the excerpt. However, it will move up the 'more' text/link (or whatever you have that as.) If you set this to FALSE, it may cut that off as well, but I didn't try it. Hope this helps.

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

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