Title: Adding a shortcode to a text-block widget
Last modified: August 21, 2016

---

# Adding a shortcode to a text-block widget

 *  Resolved [rollerbob](https://wordpress.org/support/users/rollerbob/)
 * (@rollerbob)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/adding-a-shortcode-to-a-text-block-widget/)
 * Hello,
 * Thanks for this plugin. Should it be possible to add a shortcode to a text-block
   description, then have it rendered in a text-block widget? If I’m using a Text
   widget I can use this filter:
 * `add_filter('widget_text', 'do_shortcode');`
 * Is there a similar hook for text-block widgets?
 * Matt
 * [http://wordpress.org/extend/plugins/reusable-text-blocks/](http://wordpress.org/extend/plugins/reusable-text-blocks/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Hal Gatewood](https://wordpress.org/support/users/halgatewood/)
 * (@halgatewood)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/adding-a-shortcode-to-a-text-block-widget/#post-3778298)
 * I think it should be possible. I have a hook: ‘text_blocks_widget_html’ for the
   widget display.

Viewing 1 replies (of 1 total)

The topic ‘Adding a shortcode to a text-block widget’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/reusable-text-blocks_53c8f2.svg)
 * [Reusable Text Blocks](https://wordpress.org/plugins/reusable-text-blocks/)
 * [Support Threads](https://wordpress.org/support/plugin/reusable-text-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/reusable-text-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/reusable-text-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/reusable-text-blocks/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Hal Gatewood](https://wordpress.org/support/users/halgatewood/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/adding-a-shortcode-to-a-text-block-widget/#post-3778298)
 * Status: resolved