Title: Shortcode not working
Last modified: March 1, 2024

---

# Shortcode not working

 *  Resolved [anajera](https://wordpress.org/support/users/anajera/)
 * (@anajera)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-not-working-463/)
 * I am using WPcode free version. I try to add a shortcode within a specific page
   content but it does not show. This is the shortcode I get from the plugin:
 * [wpcode id=”1455″]
 * I paste it in the page but the code does not show. My site is made with Astra.
   Am I missing something? Are there other set up options to show the code in a 
   specific page?
 * Thank you
    -  This topic was modified 2 years, 3 months ago by [anajera](https://wordpress.org/support/users/anajera/).

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

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-not-working-463/#post-17466850)
 * Hi there,
 * Can you please make sure that the snippet is active?
 * Even in Shortcode mode you can control if the snippet will be executed by the
   status of the snippet.
 *  Thread Starter [anajera](https://wordpress.org/support/users/anajera/)
 * (@anajera)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-not-working-463/#post-17467068)
 * Yes, the snippet is active and works well when I set it up as autoinsert with
   site wide body option but it disrupts the rest of the site despite I have a conditional
   on the code to only show at a specified page like this
 * if ( ! is_page(‘mgd_acc_val_dir’) ) return $content;
 * To avoid the disruption of the site I then tried the shortcode option so that
   it runs just in that page but it does not work.
    -  This reply was modified 2 years, 3 months ago by [anajera](https://wordpress.org/support/users/anajera/).
 *  Thread Starter [anajera](https://wordpress.org/support/users/anajera/)
 * (@anajera)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-not-working-463/#post-17467181)
 * I was able to get the functionality I need by using Smart Conditional Logic to
   only run the snippet in the page URL I need it to be in.
 * Anyway, it would be nice to know why the shortcode it is not running as it would
   make it easier to add the snippet to specific pages where it should run.
 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-not-working-463/#post-17472209)
 * Thank you for the update. The only reason I can think of for your shortcode not
   working is if your snippet is written in a way that prevents it to be executed
   2 times and you are also auto-inserting it in the page.
 * Would it be possible to share more details about your snippet code/setup? Alternatively,
   you can reach out using the form at [https://wpcode.com/contact](https://wpcode.com/contact)
   if you want to share the details of the snippet privately.

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

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

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/shortcode-not-working-463/#post-17472209)
 * Status: resolved