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 #14615cdilsParticipant
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. 🙂
January 25, 2013 at 10:51 am #14624Justin RomackParticipant
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 #14768cdilsParticipant
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!
August 21, 2013 at 6:13 am #57881gerardoritcheyMember
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 directionNovember 13, 2013 at 6:57 pm #72840totalmarcMember
this should work:
add_filter( 'genesis_term_intro_text_output', 'do_shortcode' );November 14, 2013 at 8:11 am #72928
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.