• 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

Insert excerpt between post title and meta

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 › Insert excerpt between post title and meta

This topic is: not resolved

Tagged: Excerpt, hooks, meta, post title

  • This topic has 7 replies, 3 voices, and was last updated 11 years, 4 months ago by river-bum.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • September 9, 2014 at 7:54 am #123564
    river-bum
    Member

    I'd like to include an excerpt in between the post title and the meta, but it seems like the hook that allows this has been deprecated.

    According to WP Sites, there is no longer a hook that comes in this location.

    Can anyone help? I suppose a filter is needed, but I can't figure out how to code it. Thank you in advance!

    http://www.stcroix360.com/2014/08/this-old-log-house-scandia-struggles-with-scale-of-renovations-at-river-landing/
    September 9, 2014 at 8:00 am #123565
    Genesis Developer
    Member

    you can try this

    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    add_action( 'genesis_entry_footer', 'genesis_post_info', 12 );

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

    September 9, 2014 at 8:29 am #123569
    river-bum
    Member

    Thanks, genwrock.

    That helped, but I want the excerpt to come before the entry content.

    I tried this, but the meta/info is not showing up:

    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    add_action( 'genesis_entry_content', 'genesis_post_info', 12 );

    Here's what I'm using to insert the excerpt

    add_action( 'genesis_entry_header', 'excerpt_on_post', 33 ); 
    function excerpt_on_post() {
        if ( is_single() ) {
        echo '<div class="excerpt">';
    	
    	if ( has_excerpt() ) {
    		$my_excerpt = get_the_excerpt();
    		echo $my_excerpt;
    		echo $post->post_excerpt;
    		echo '</p></div>';
    		}

    Thanks again!

    September 9, 2014 at 8:49 am #123574
    Brad Dalton
    Participant

    Remove these 2 lines

    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    add_action( 'genesis_entry_content', 'genesis_post_info', 12 );
    

    And change the 3rd parameter from 33 to 11


    Tutorials for StudioPress Themes.

    September 9, 2014 at 8:51 am #123576
    Genesis Developer
    Member

    just replace this line

    add_action( 'genesis_entry_header', 'excerpt_on_post', 33 );

    with

    add_action( 'genesis_entry_header', 'excerpt_on_post', 10 );


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

    September 9, 2014 at 8:53 am #123577
    river-bum
    Member

    Perfect, many thanks!

    September 9, 2014 at 9:39 am #123588
    Brad Dalton
    Participant

    This is how i would do it http://wpsites.net/web-design/add-excerpt-after-entry-title-before-entry-meta-in-entry-header-of-genesis/


    Tutorials for StudioPress Themes.

    September 9, 2014 at 10:37 am #123596
    river-bum
    Member

    Works like a charm, thanks Brad!

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