Title: shortcode processing filter of widgets
Last modified: December 27, 2018

---

# shortcode processing filter of widgets

 *  [Ido Friedlander](https://wordpress.org/support/users/idofri/)
 * (@idofri)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/shortcode-processing-filter-of-widgets/)
 * On revision [@1978129](https://plugins.trac.wordpress.org/changeset/1978129/)
   you’ve removed the shortcode processing logic for all widgets.
 * WordPress 4.9+ does handle it for the Text widget, but same filter applies for
   the Custom HTML widget as well.
 * You should probably consider restoring this logic for the [widget_custom_html_content](https://developer.wordpress.org/reference/hooks/widget_custom_html_content/)
   filter hook.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [denis24](https://wordpress.org/support/users/denis24/)
 * (@denis24)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/shortcode-processing-filter-of-widgets/#post-11030555)
 * Thanks for leaving this comment. I updated to version 5.1.1 today and discovered
   that the contact form is no longer displaying on my site.
 * I use a shortcode to display it in a Custom HTML widget. Now all visitors see
   is the shortcode.
 * Is there any chance this can be fixed quickly by the developer(s)?
 *  Thread Starter [Ido Friedlander](https://wordpress.org/support/users/idofri/)
 * (@idofri)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/shortcode-processing-filter-of-widgets/#post-11030589)
 * Just add the following filter to your theme’s functions.php file:
 * `add_filter( 'widget_custom_html_content', 'do_shortcode' );`
 *  [Neil Murray](https://wordpress.org/support/users/buzztone/)
 * (@buzztone)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/shortcode-processing-filter-of-widgets/#post-11031171)
 * See [https://wordpress.org/support/topic/sidebar-widget-not-working-5/#post-10998033](https://wordpress.org/support/topic/sidebar-widget-not-working-5/#post-10998033)
   from Takayuki Miyoshi.
 * > Make sure the shortcode is included in a general Text widget. Shortcodes don’t
   > work in other types of widget like Custom HTML widget – Takayuki Miyoshi (CF7
   > plugin author).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘shortcode processing filter of widgets’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Neil Murray](https://wordpress.org/support/users/buzztone/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/shortcode-processing-filter-of-widgets/#post-11031171)
 * Status: not a support question