Title: Shortcode within dynamic widget is not working
Last modified: June 8, 2018

---

# Shortcode within dynamic widget is not working

 *  Resolved [kinleychristian](https://wordpress.org/support/users/kinleychristian/)
 * (@kinleychristian)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/shortcode-within-dynamic-widget-is-not-working/)
 * I have written a shortcode that returns string “XYZ” when certain parameter “
   ABC” is passed within shortcode i.e. [shortcode param=ABC] => returns XYZ.
 * Within Dynamic Widget, under shortcode condition criteria, I want to have this
   widget display across the site except when the shortcode returns XYZ, so,
    [shortcode
   param=ABC] “matches” XYZ.
 * But this does not seems to be working, I have also tried using "XYZ", still not
   working.
 * I have also verified that shortcode returns only String and not any special characters
   like <TAB> <SPACE> etc.
 * Any suggestions?
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Qurl](https://wordpress.org/support/users/qurl/)
 * (@qurl)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/shortcode-within-dynamic-widget-is-not-working/#post-10402374)
 * I’ve not been able to reproduce the problem. The comparison is case sensitive,
   maybe that’s the problem here.

Viewing 1 replies (of 1 total)

The topic ‘Shortcode within dynamic widget is not working’ is closed to new replies.

 * ![](https://ps.w.org/dynamic-widgets/assets/icon-256x256.png?rev=2968917)
 * [Dynamic Widgets](https://wordpress.org/plugins/dynamic-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dynamic-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dynamic-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/dynamic-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dynamic-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dynamic-widgets/reviews/)

## Tags

 * [dynamic widget](https://wordpress.org/support/topic-tag/dynamic-widget/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 2 participants
 * Last reply from: [Qurl](https://wordpress.org/support/users/qurl/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/shortcode-within-dynamic-widget-is-not-working/#post-10402374)
 * Status: resolved