How to load visual composer during using ajax in wordpress
问题 I used an ajax request in Wordpress to get the content of a post, in that post i used the Visual Composer. but the content shows only the VC shortcodes with out changing them to the real content.. That is the code that i used add_action( 'wp_ajax_drpk_custom','drpk_custom' ); add_action( 'wp_ajax_nopriv_drpk_custom','drpk_custom' ); function drpk_custom(){ if(isset($_REQUEST)){ $id = $_REQUEST['id']; $query = new WP_Query(array('p'=>$id)); if($query->have_posts()): while($query->have_posts())