I have the php code (ACF Pro plugin code). How can I insert this code into my Visual Composer? Can\'t find the solution for a long time but now it\'s critical for me.
Just put your php code inside a function and create shortcode
function vComp(){
**PHP CODE**
}
add_shortcode( 'vShortcode', 'vComp' );
Goto Visual Composer- Shortcode Mapper - Map Shortcode - then Enter valid shortcode (Example: [vShortcode]).
Create function in functions.php page .
function shortcode (){
}
add_shortcode('shortcode-name',shortcode );