I am working on a site built in visual composer/wp bakery. I do not want to work in the admin but in a php file.

How can I get code like

[vc_column_text]
<h3><a href="https://wordpress.stackexchange.com/questions/298984/home">home</a></h3>
[/vc_column_text]

to parse from a a php file, rather than WP admin?

2 s
2

Based on Toms comment this will work:

<?php echo do_shortcode( ' 
[vc_column_text]
<h3><a href="https://wordpress.stackexchange.com/questions/298984/home">home</a></h3>
[/vc_column_text]
' );?>

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *