• 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

Add Filter to Allow Shortcodes in Category Description

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 › Add Filter to Allow Shortcodes in Category Description

This topic is: not resolved

Tagged: category description, category intro, gravity form, shortcodes, text filter

  • This topic has 6 replies, 5 voices, and was last updated 11 years, 7 months ago by Brad Dalton.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • January 22, 2013 at 3:14 pm #13844
    Justin Romack
    Participant

    So, I've asked this question here before, but wasn't able to get enough answers to piece together a solution. I figured I'd ask again and see what happens...

    I'm trying to embed a Gravity Form within the category description section, but something is stripping my shortcode and all I see is the text. I've seen something like this before...

    add_function( 'widget_text', 'do_shortcode');

    But I'm just not sure what I'd need to change to get this up and running for my instance. Apologies for my absolute ignorance here - just a "copy guy" working to get some conversion vehicles solid for a client. Any help is greatly appreciated! 🙂

    Page in question is at: http://blog.drroyalbenson.com/breast-augmentation

    Thanks again, all!

    January 25, 2013 at 10:25 am #14615
    cdils
    Participant

    Have you tried using the category "archive intro text" instead of the category description? Not sure if it parses text out the same way or not. Just a shot in the dark. 🙂


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂

    I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.

    January 25, 2013 at 10:51 am #14624
    Justin Romack
    Participant

    Thanks so much for the response...

    I misspoke, however, as I've been trying to use the shortcode within the "archive intro text" area.

    I may have to repost with an accurate title. I've been botching that since I started asking for help here...maybe that's been the problem all along. 🙂

    Thanks for the suggestion - and the help getting me on track with the right terminology!

    January 25, 2013 at 2:58 pm #14768
    cdils
    Participant

    No problem! I was thinking you could do HTML in there, but not sure about PHP - maybe a security issue? Sorry I'm not much help!


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂

    I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.

    August 21, 2013 at 6:13 am #57881
    gerardoritchey
    Member

    You can't use shortcodes. At least not that I see how.

    Genesis does not use the built-in category description to output stuff at the top of the category archive.

    Genesis uses the Archive Headline and Archive Intro Text in Category Archive settings to display information at the top of a category archive.

    It's sad, because the built-in category description has filters that will allow you to drop shortcodes in there.`add_filter( 'category_description', 'do_shortcode' );
    `

    If you want to use short codes, you're going to have to unhook how the genesis framework does it, and implement it yourself.

    This thread should get you pointed in the right direction

    November 13, 2013 at 6:57 pm #72840
    totalmarc
    Member

    this should work:

    add_filter( 'genesis_term_intro_text_output', 'do_shortcode' );

    November 14, 2013 at 8:11 am #72928
    Brad Dalton
    Participant

    Try this http://wpsites.net/web-design/parse-shortcodes-in-category-archive-intro-text-field/


    Tutorials for StudioPress Themes.

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