Hi @sonfisher,
If the shortcodes are defined in the functions.php file and you copy them into WPCode with the Code Type set to PHP and set them to “Auto-insert + Run Everywhere” you shouldn’t have to change anything.
The shortcode option in the Add Snippet screen makes it easy for you to use a snippet’s output as a shortcode without having to write the shortcode part of the code.
I think you have really missed the point of my question.
The existing shortcodes are context/position sensitive. Just auto inserting outside of the context would defeat the purpose for which it is intended.
Hi @sonfisher,
The auto-insert option used with Run Everywhere (for PHP snippets) will just make sure the PHP code used to define the shortcodes is executed everywhere so that they can be used as you were using them before.
That option essentially makes the code act similar to functions.php in that PHP code becomes available to the whole site.
If that still doesn’t apply to your use-case maybe you can share the PHP code of one of the shortcodes so I can try to understand the context better.
Thanks,
Mircea