• 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

Remove the Post Tags from Excerpt only?

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 › Remove the Post Tags from Excerpt only?

This topic is: not resolved

Tagged: Excerpt, post meta, post tags, remove, tags

  • This topic has 2 replies, 2 voices, and was last updated 12 years, 6 months ago by Gemma Wild.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 21, 2012 at 9:50 am #6644
    Gemma Wild
    Member

    Hey guys

    Does anyone know of a way to remove the post tags from the excerpt only?

    I found the function that can remove the 'post meta' but unfortunately this also removes it from the actual post itself, which is not what I'm looking to do. I want to remove it just from the excerpt.


    /** Remove the post meta function */
    remove_action( 'genesis_after_post_content', 'genesis_post_meta' );

    Thanks
    Gem


    While this town is busy sleeping…

    http://www.gemmawild.co.uk

    December 21, 2012 at 11:42 pm #6889
    Hard Boiled Greg
    Member

    Paste this into functions.php:

    add_action( 'genesis_before', 'excerpt_post_meta_removal' );
    function excerpt_post_meta_removal() {
    if( !is_single() ) {
    remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
    }
    }

     

    HBG


    Website: Hard Boiled Greg Twitter: @hbgreg

    December 23, 2012 at 9:24 am #7154
    Gemma Wild
    Member

    Greg, thank you so much, this worked a treat!


    While this town is busy sleeping…

    http://www.gemmawild.co.uk

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Remove the Post Tags from Excerpt only?’ is closed to new 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