• Resolved anajera

    (@anajera)


    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 9 months ago by anajera.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    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

    (@anajera)

    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 9 months ago by anajera.
    Thread Starter anajera

    (@anajera)

    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

    (@gripgrip)

    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 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.