Community Forums › Forums › Archived Forums › Design Tips and Tricks › Add Filter to Allow Shortcodes in Category Description
- This topic has 6 replies, 5 voices, and was last updated 11 years ago by Brad Dalton.
-
AuthorPosts
-
January 22, 2013 at 3:14 pm #13844Justin RomackParticipant
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 #14615cdilsParticipantHave 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 #14624Justin RomackParticipantThanks 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 #14768cdilsParticipantNo 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 #57881gerardoritcheyMemberYou 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 #72840totalmarcMemberthis should work:
add_filter( 'genesis_term_intro_text_output', 'do_shortcode' );
November 14, 2013 at 8:11 am #72928 -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.