• 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

Problem displaying shortcodes on Genesis Custom Post Type Archive Pages

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 › Problem displaying shortcodes on Genesis Custom Post Type Archive Pages

This topic is: resolved

Tagged: custom post type archive, shortcodes

  • This topic has 2 replies, 2 voices, and was last updated 8 years ago by Aleksandr.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 16, 2017 at 5:42 am #206523
    Aleksandr
    Member

    I see that shortcodes that work on normal posts do not display on the archive pages. I have tried this with some shortcodes that I coded as well as shortcodes from plugins (eg. metaslider).

    Is there any way to add shortcodes to the custom post type archive pages?

    May 17, 2017 at 4:16 am #206583
    James Chai
    Member

    Try adding this to your functions.php file

    /**
     * Allow shortcodes in genesis archive intro text.
     *
     * @author Joshua David Nelson, [email protected]
     **/
    
    // Custom Post Type Archive Intro Text
    add_filter( 'genesis_cpt_archive_intro_text_output', 'do_shortcode' );
    
    // Author Archive Intro Text
    add_filter( 'genesis_author_intro_text_output', 'do_shortcode' );
    
    // Term Archive Intro Text
    add_filter( 'genesis_term_intro_text_output', 'do_shortcode' );

    Marketing, Sales and WordPress Growth Hacking http://www.smbpress.com

    May 17, 2017 at 5:30 am #206590
    Aleksandr
    Member

    Thanks James, this works fine.

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