• 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

CPT Post Entry Info

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 › CPT Post Entry Info

This topic is: not resolved
  • This topic has 2 replies, 3 voices, and was last updated 9 years, 10 months ago by Susan.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 16, 2016 at 12:45 pm #181578
    Chuck
    Member

    I have created a CPT called sermons and am tring to code a specific byline, info based on the CPT taxonomy. I have attached to change the existing info meta but have not been successful. Any help would be appreciated:

    // remove post info, post meta, and title from a single CPT
    add_action ('get_header', 'tx_remove_post_info');
    function tx_remove_post_info() {
    	if ('sermons' == get_post_type()) {
    		remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    		remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    		//remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
    		}
    }
    
    add_filter( 'genesis_post_info', 'sp_post_info_filter' );
    function sp_post_info_filter($post_info) {
        if ( 'sermons' == get_post_type ()) {
            $post_info = '[post_date] By [entry-terms taxonomy="speaker"]';
        }
    	return $post_info;
    }

    Chuck Smith
    Twitter: @polishedwp

    March 16, 2016 at 11:07 pm #181611
    Christoph
    Member

    Hi,

    you are removing genesis_post_info which causes the filter to have nothing to filter.

    Did you try just using the filter?


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    September 30, 2016 at 2:30 pm #194025
    Susan
    Moderator

    This post is showing as having no replies, but I'm seeing one by @Christoph. It appears to be a forum glitch.

  • 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

© 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