• 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

Full Post then Excerpts

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 › Full Post then Excerpts

This topic is: not resolved
  • This topic has 14 replies, 5 voices, and was last updated 12 years, 6 months ago by Sridhar Katakam.
Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • January 16, 2014 at 3:39 am #85470
    [email protected]
    Member

    Hi!
    I am using the Jane theme.
    I would like to show on full post and then show excerpts after that.
    How would I do that?

    http://129.121.133.196/~southe10/

    Thanks!
    Kendra

    http://129.121.133.196/~southe10/
    January 16, 2014 at 6:16 am #85480
    Sridhar Katakam
    Participant

    http://sridharkatakam.com/displaying-latest-post-full-followed-excerpts-genesis/


    Genesis Tutorials | Follow me on Twitter

    January 16, 2014 at 9:23 am #85500
    Genesis Developer
    Member

    Also you can achieve this using few codes. Here is the code:

    
    add_action('template_redirect', 'sp_custom_post_content');
    function sp_custom_post_content(){
      if( is_home() || is_front_page() || is_page_template('page_blog.php') ){ // this will call for home, front & blog template page
        remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
        remove_action( 'genesis_post_content', 'genesis_do_post_content' );
        add_action( 'genesis_entry_content', 'genesis_do_custom_post_content' );
        add_action( 'genesis_post_content', 'genesis_do_custom_post_content' );
      }
    }
    function genesis_do_custom_post_content(){
      global $wp_query;
      if( $wp_query->current_post == 0 ){ // Only first post will display full content
        the_content();
      }else{
        the_excerpt();
      }
    }

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    January 16, 2014 at 5:27 pm #85574
    [email protected]
    Member

    Thanks so much!!
    I should just search your blog every time!!

    Kendra

    January 16, 2014 at 11:32 pm #85589
    maliha3492
    Member

    Thanks so much!!
    I should just search your blog every time!!


    maliha

    January 17, 2014 at 5:04 pm #85698
    [email protected]
    Member

    Hi! I actually have one more question...
    Now that I have one full post showing and then excepts would it be possible to insert a graphic after the first post but before the excerpts that says "recently on southern revivals."

    Here is my site:

    http://129.121.133.196/~southe10/

    Here is an example:
    http://www.inspiredbycharm.com

    January 19, 2014 at 11:33 pm #86037
    Sridhar Katakam
    Participant

    Try adding this in functions.php:

    add_action( 'genesis_after_entry', 'graphic_after_first_post' );
    function graphic_after_first_post() {
    
    	if ( !is_home() || is_paged() )
    		return;
    
    	global $wp_query;
    	if( ($wp_query->current_post == 0) ) {
    		echo '<div class="after-first-post">HTML to show your desired graphic here</div>';
    	}
    
    }

    For Pre-HTML5 themes, genesis_after_entry should be replaced with genesis_after_post


    Genesis Tutorials | Follow me on Twitter

    January 20, 2014 at 5:34 pm #86194
    [email protected]
    Member

    THANK YOU!!!! worked perfect!

    January 20, 2014 at 6:06 pm #86200
    [email protected]
    Member

    One more question for you ...
    Now that I have one full post add then excerpts I still want to use the "show featured imaged" function so that the excerpts have a featured image thumbnail. .. .BUT then the image on the first post show ups twice (the featured image and also the image that was inserted to the post)

    THANKS!
    Kendra

    January 20, 2014 at 7:53 pm #86208
    Sridhar Katakam
    Participant

    Add this CSS:

    .home .entry:nth-child(1) .entry-image {
        display: none;
    }

    Genesis Tutorials | Follow me on Twitter

    January 21, 2014 at 3:07 am #86244
    [email protected]
    Member

    Thanks again! Worked perfect as well!
    Kendra

    April 2, 2014 at 10:59 am #98099
    Kristie Hill
    Member

    Thanks for asking this question Kendra, I was wondering the same thing. @Shridha, is it possible to do this on a sticky post of a category? I want the first post in the category to show full content.


    Kristie Hill

    April 4, 2014 at 6:11 am #98425
    Sridhar Katakam
    Participant

    @Dreamy: Try http://sridharkatakam.com/display-full-post-content-first-post-category-pages-genesis/


    Genesis Tutorials | Follow me on Twitter

    April 4, 2014 at 2:03 pm #98515
    Kristie Hill
    Member

    Hi. thanks for the tutorial. I inserted the code, but it isn't working on my category.

    http://dreamyambitions.com/how-to-start-a-blog/

    the firs post is still showing as an excerpt


    Kristie Hill

    April 5, 2014 at 5:07 pm #98665
    Sridhar Katakam
    Participant

    http://sridharkatakam.com/display-full-post-content-first-post-category-pages-genesis/#comment-31517


    Genesis Tutorials | Follow me on Twitter

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