• 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

How to Remove Post Info in Custom Post Types

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 › How to Remove Post Info in Custom Post Types

This topic is: not resolved

Tagged: Custom Post Type Post Info

  • This topic has 2 replies, 2 voices, and was last updated 12 years, 3 months ago by shewearswhite.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 11, 2013 at 1:06 am #11161
    shewearswhite
    Member

    Hi all,

    I'm looking for help to remove the post info from custom post types. I've figured out how to remove it from all posts but this is not exactly ideal. I'm using the plugin 'Custom Post Type UI' to create my custom posts.

    My website is http://www.shewearswhite.com

    Thank you!

    Katie

    January 26, 2013 at 4:38 pm #15135
    SoZo
    Member

    You'd need to put the remove action into a function using the post type conditional


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    January 26, 2013 at 5:11 pm #15175
    shewearswhite
    Member

    Thanks SoZo,

    I tried inserting the following code into my functions.php however it removed the post info from ALL posts not just my custom post type. Can you see where I'm going wrong?
    function custom_post_info($post_info)
    {
    global $post;
    if(get_post_type($post->ID) == 'post_type_name' )
    {
    return false;
    }
    else
    {
    return $post_info;
    }
    }
    add_filter('genesis_post_info', 'custom_post_info ');

  • 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