I am trying to use an existing shortcode for an accordion element in a custom template for my wordpress site. Basically, I need to insert PHP arrays inside this shortcode, like so:

<php do_shortcode('[vc_accordion]';>
PHP arrays here
<php do_shortcode('[/vc_accordion]';>

Does anyone know if a solution?

Read more here: Inserting PHP inside do_shortcode


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, ,

Wordpress related questions and answers: