• 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

show post_meta on CPT archive page

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 › show post_meta on CPT archive page

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 6 years, 2 months ago by Sridhar Katakam.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 30, 2017 at 10:59 am #208519
    mmjaeger
    Member

    hello
    I'd like to show tags and categories in the entry footer on the custom post type archive page - could anybody please tell me how to do this?

    thanks

    July 4, 2017 at 4:07 am #208652
    Sridhar Katakam
    Participant

    Try adding this in child theme's functions.php:

    // Add Categories and Tags support to "portfolio" CPT.
    add_action( 'init', 'sk_add_category_tag_portfolio' );
    function sk_add_category_tag_portfolio() {
    	register_taxonomy_for_object_type( 'category', 'portfolio' );
    	register_taxonomy_for_object_type( 'post_tag', 'portfolio' );
    }

    Genesis Tutorials | Follow me on Twitter

    July 4, 2017 at 4:11 am #208653
    Sridhar Katakam
    Participant

    Replace portfolio with the name of your CPT.


    Genesis Tutorials | Follow me on Twitter

  • 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

© 2023 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