• 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 post info in custom post type template

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 › Remove post info in custom post type template

This topic is: resolved

Tagged: custom post type template, remove post info

  • This topic has 4 replies, 3 voices, and was last updated 12 years ago by simbasounds.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 19, 2014 at 5:19 am #125040
    simbasounds
    Member

    Following Brad Dalton's guide, I was able to remove post info in my portfolio custom post type via the functions.php method, but ideally I would have preferred to have it work by putting the code inside my template: GitHub Gist link to my portfolio template.

    In theory adding the line:
    remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    to my template should have worked, but I'm clearly missing something.
    I tried the code at the top of the template, and inside my function portfolio_do_loop()

    Many thanks

    http://simonbarnett.co.za/switchgrid/portfolio/
    September 19, 2014 at 9:25 am #125057
    Brad Dalton
    Participant

    You could remove it using CSS as its not generated using a Genesis function.


    Tutorials for StudioPress Themes.

    September 19, 2014 at 9:29 am #125058
    David Chu
    Participant

    Hi,
    It looks mostly fine. You have genesis() as your last line, so that's all set.

    When you're in a different context from functions.php, like a separate template or a plugin, I'd suggest playing with the priority number - those are extremely elusive, one of the downsides of the new HTML5 world.

    Dave


    Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers

    September 19, 2014 at 9:30 am #125059
    simbasounds
    Member

    Thanks Brad. The functions.php method worked, and it feels "cleaner".
    And I'm also going to upgrade my knowledge, thanks to your advice in the article's comments.

    September 19, 2014 at 9:32 am #125062
    simbasounds
    Member

    Thanks David, will look into that too.
    Between jobs is a good time to experiment and learn : )

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

© 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