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