• 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

Hiding post meta and post info only for a special category

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 › Hiding post meta and post info only for a special category

This topic is: not resolved

Tagged: .post-info, category, post meta

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 11 months ago by luba lee.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • December 6, 2014 at 7:15 am #133796
    luba lee
    Participant

    I have a special blog category that I have showing together in a category page, but I don't want it to show any post meta or post info: just the title, image and content (or, title, thumbnail and extract).

    Any ideas on how to achieve this?

    December 6, 2014 at 8:19 am #133806
    Ren Ventura
    Member
    //* Remove post info and meta on posts with a particular category
    add_action ( 'get_header', 'rv_cpt_remove_post_info_genesis' );
    function rv_cpt_remove_post_info_genesis() {
    	if ( has_category( 'category-slug' ) ) {
    		remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    		remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    	}
    }
    

    Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren

    December 6, 2014 at 8:29 am #133809
    luba lee
    Participant

    This is it! That works perfectly, Ren, Thank you so much.

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

© 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