Site logo

Archived topic

Notice: GP 1.3.04 will not display shortcodes in widgets

4 replies · Started by Tom on June 27, 2015

Viewing posts 1–5 of 5

GeneratePress 1.3.04 will no longer automatically display shortcodes in the "Text" widget.

This is due to a rule on WordPress.org - they believe themes shouldn't be able to make the decision to allow shortcodes in the Text widget.

Therefore, I've had to remove the filter that does this for you.

To prepare for this change, you can add the following line into your child theme functions.php file:

add_filter( 'widget_text', 'do_shortcode' );

Adding PHP: http://generatepress.com/knowledgebase/adding-php-functions/

Kind of a funny rule, but we have to follow it regardless.

Thanks for understanding! :)

I've added this piece of code to GP Premium now as well :)

For those of us who are clueless (raises hand) what does this mean? If I haven't added any shortcodes to widgets do I need to worry about this?

Nope - if you're not using shortcodes in your Text widgets, you're good to go :)

Thank you, Tom

This archived topic is closed to new replies.