• 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

custom post type: genesis_post_meta

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 › custom post type: genesis_post_meta

This topic is: not resolved
  • This topic has 5 replies, 2 voices, and was last updated 8 years, 5 months ago by mmjaeger.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • December 5, 2016 at 7:26 am #197043
    mmjaeger
    Member

    add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );

    Something like this above doesn't seem to work for custom post type posts/entries - is there another filter that I could use for a CPT entry?

    Thanks in advance for your input.

    December 5, 2016 at 7:53 am #197049
    Victor Font
    Moderator

    If you want the genesis_post_meta filter to work with CPTs, you have to inlcude add_post_type_support( 'cpt', 'genesis-entry-meta-after-content' ) somewhere during the init process. Change 'cpt' to the slug o your post type.

    As a first step, the genesis_post_meta filter uses the WordPress post_type_supports function to test for this support attribute. If it doesn't exist, the filter doesn't do anything. https://codex.wordpress.org/Function_Reference/post_type_supports


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    December 6, 2016 at 8:01 am #197115
    mmjaeger
    Member

    Thank you Victor - unfortunately, it doesn't make a difference - still don't see the post-meta info on the CPT single view page.

    December 6, 2016 at 11:29 am #197122
    Victor Font
    Moderator

    Whatever you're using as a template for the single page may be missing the hook.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    December 6, 2016 at 11:31 am #197124
    mmjaeger
    Member

    the post meta shows below the posts but not below the single entries of the custom post type???

    December 7, 2016 at 5:05 pm #197214
    mmjaeger
    Member

    anybody??
    add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); does not get processed when I'm on a single view page of a CPT that uses the standard template like the posts do - on the post page, the filter gets processed.

    what am I missing here?

    Thank you in advance for your input.

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