• 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 add filed under: category names

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 › Custom Post Type add filed under: category names

This topic is: not resolved

Tagged: CPT, Custom Post Type, filed under, meta data

  • This topic has 7 replies, 4 voices, and was last updated 10 years, 11 months ago by deejuk.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • July 23, 2014 at 5:38 am #115486
    deejuk
    Member

    Hi all

    I have created a custom post type and have the data displaying fine. However I want to include the custom taxonomy details in the bit that says Filed Under:

    This bit is the bit that normally shows the Filed Under: Category 1, Category 2 etc.

    Does anyone know how to do this - any help would be great


    WN6 Web Design – North West of England

    July 23, 2014 at 6:44 am #115492
    Genesis Developer
    Member

    use this shortcode

    [post_terms taxonomy="YOUR TAXONOMY HERE"]


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    July 23, 2014 at 8:05 am #115507
    deejuk
    Member

    Hi thanks for that ... where do I past the shortcode in functions.php or my a template file?


    WN6 Web Design – North West of England

    July 23, 2014 at 8:30 am #115512
    DTHkelly
    Member

    Some reference:

    Add Custom Taxonomy Terms to Custom Post Type in Genesis Theme WordPress

    July 23, 2014 at 10:50 am #115533
    Brad Dalton
    Participant

    Add the shortcode to this code http://my.studiopress.com/snippets/entry-footer/#customize


    Tutorials for StudioPress Themes.

    July 24, 2014 at 3:56 am #115668
    deejuk
    Member

    Thank you for the info. So added the following and it worked great for custom post types. It shows the CPT taxonomy under filed under, however the Category Taxonomy for regular posts is missing.

    //* Customize the entry meta in the entry footer (requires HTML5 theme support)
    add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
    function sp_post_meta_filter($post_meta) {
    	$post_meta = '[post_terms taxonomy="mytaxonomy"], [post_tags]';
    	return $post_meta;
    }

    WN6 Web Design – North West of England

    July 24, 2014 at 12:02 pm #115722
    Brad Dalton
    Participant

    Because you removed it. Add it back.


    Tutorials for StudioPress Themes.

    July 24, 2014 at 12:47 pm #115735
    deejuk
    Member

    That kind of works better thank you Brad. I have the following code.

    //* Customize the entry meta in the entry footer (requires HTML5 theme support)
    add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
    function sp_post_meta_filter($post_meta) {
    	$post_meta = '[post_terms taxonomy="mytaxonomy"] [post_categories] [post_tags]';
    	return $post_meta;
    }

    This works fine for normal posts, but for custom post types I get left with an additional Filed Under: where the normal category should be. As it's not linked to normal categories it hasn't got one so obviously can't show it.

    This is what I see when I view the custom post type archive

    Filed Under: My custom taxonomy
    Filed Under:
    Tags: my post tags

    This is what I see when I view the normal post archive
    Filed Under: A regular category
    Tags: My post tags.

    Any help on this would be great .. even though it takes me a while to work out the pointers but thank you very much


    WN6 Web Design – North West of England

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