• 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 Info and Meta on Custom Post Type

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 Info and Meta on Custom Post Type

This topic is: not resolved

Tagged: Custom Post Type, Remove Info, remove meta

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 10 months ago by nikcree.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 9, 2014 at 10:41 pm #84313
    nikcree
    Member

    I am trying to remove the Meta and info from the custom post type
    'testimonials' without much success. I have the following in the functions
    file:

    add_action('template_redirect', 'remove_info_meta_testimonials_post_type');
    function remove_info_meta_testimonials_post_type() {
    if( post_type_exists('testimonials') || is_post_type_archive('testimonials') )
    remove_action('genesis_before_post_content', 'genesis_post_info');
    remove_action('genesis_after_post_content', 'genesis_post_meta');
    }

    I also tried:

    // Remove Info and Meta from Testimonials Custom Post Type
    add_action('template_redirect', 'remove_info_meta_testimonials_post_type');
    function remove_info_meta_testimonials_post_type() {
    if ( 'testimonials' == get_post_type() )
    remove_action('genesis_before_post_content', 'genesis_post_info');
    remove_action('genesis_after_post_content', 'genesis_post_meta');
    }

    Neither worked. Does anyone have other pointers that may help? Many thanks

    http://www.logicalcoaching.com.au/testimonials/my-biggest-year-in-real-estate/
    January 9, 2014 at 11:16 pm #84322
    Brad Dalton
    Participant

    That code only works for themes running XHTML markup.

    You'll need the code for HTML 5 themes http://my.studiopress.com/snippets/


    Tutorials for StudioPress Themes.

    January 9, 2014 at 11:35 pm #84326
    nikcree
    Member

    Thanks Brad - Yep, just realised all my code snippets are the pre-HTML5 ones. Have to update my library. Thanks again.

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

© 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