I am trying to create a custom script, via a plugin, that uses visual composer shortcodes (eg VC_column, vc_rows etc), however I cannot seem to call the VIsual composer elements, and the resultant tags opposed to formatting are displayed.
Have you any suggestions on how to leverage the themes formatting into php script/plugin, or any sample templates that could replicate theme designs
Could you try and make sure the shortcodes are processed by maybe using the do_shortcode method so the raw shortcodes do not display on your front end?
The shortcodes are already registered when the salient page builder plugin is enabled so in theory using the shortcodes or having a piece of script that outputs the shortcodes should also work on your pages or custom locations as long as the location is processed for shortcodes. That is why we are suggesting the use of the do_shortcode method - https://developer.wordpress.org/reference/functions/do_shortcode/
I am trying to create a custom script, via a plugin, that uses visual composer shortcodes (eg VC_column, vc_rows etc), however I cannot seem to call the VIsual composer elements, and the resultant tags opposed to formatting are displayed.
Have you any suggestions on how to leverage the themes formatting into php script/plugin, or any sample templates that could replicate theme designs
Hi there,
Could you try and make sure the shortcodes are processed by maybe using the do_shortcode method so the raw shortcodes do not display on your front end?
The shortcodes are already registered when the salient page builder plugin is enabled so in theory using the shortcodes or having a piece of script that outputs the shortcodes should also work on your pages or custom locations as long as the location is processed for shortcodes. That is why we are suggesting the use of the do_shortcode method - https://developer.wordpress.org/reference/functions/do_shortcode/
Hope this helps.