Title: Shortcode not working
Last modified: September 7, 2022

---

# Shortcode not working

 *  Resolved [emmamiumiu](https://wordpress.org/support/users/emmamiumiu/)
 * (@emmamiumiu)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-419/)
 * Hello,
 * I’m using the free version of the plugin for a development site (still on localhost).
 * I’m having issue with the policy generator.
    Some shortcode are added along the
   different part but when i publish the page the shortcode are not working and 
   are displayed like this : [user_consent_state]
 * I’ve tried them on php with do_shortcode and they work just fine.
 * I’m using my own theme do i need to add something inside the function.php file
   so shortcode are enable?
 * Thanks in advance!

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

 *  Plugin Author [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * (@webtoffee)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-419/#post-16003874)
 * Hi [@emmamiumiu](https://wordpress.org/support/users/emmamiumiu/),
 * Greetings from Webtoffee!
 * We assume issue is with the caching. Could you try [this code](https://gist.github.com/webtoffee-git/b99a86315cebeccb4bbaf2d5e217c007)
   in your site’s active child theme’s functions.php and let us know how it goes.
   Clear site cache before checking its working.
 *  Thread Starter [emmamiumiu](https://wordpress.org/support/users/emmamiumiu/)
 * (@emmamiumiu)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-419/#post-16003985)
 * Hi [@webtoffee](https://wordpress.org/support/users/webtoffee/)
 * Thanks for the code!
    Sadly, after adding it to my function.php and clear cache,
   it’s still not working…
 *  Plugin Author [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * (@webtoffee)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-419/#post-16011635)
 * Hi [@emmamiumiu](https://wordpress.org/support/users/emmamiumiu/),
 * To further check the issue we require your site URL to test it in our testing
   environment. Would you mind sharing it privately through [this link.](https://www.webtoffee.com/contact/)?
 *  Thread Starter [emmamiumiu](https://wordpress.org/support/users/emmamiumiu/)
 * (@emmamiumiu)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-419/#post-16011748)
 * Hi [@webtoffee](https://wordpress.org/support/users/webtoffee/)
 * My website is still in localhost only at the moment so i cant share a link with
   you…
 *  Plugin Author [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * (@webtoffee)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-419/#post-16038447)
 * Hi [@emmamiumiu](https://wordpress.org/support/users/emmamiumiu/),
 * When you are ready with a staging site let us know by opening a new thread so
   that we can have a look at it. For now we are marking this thread as resolved.

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

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

 * ![](https://ps.w.org/cookie-law-info/assets/icon.svg?rev=3007243)
 * [CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice)](https://wordpress.org/plugins/cookie-law-info/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-law-info/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-law-info/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-law-info/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-law-info/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-law-info/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/shortcode-not-working-419/#post-16038447)
 * Status: resolved