내 짧은 코드가 항상 모든 내용보다 먼저 나오는 이유는 무엇입니까? 내가 원하는 곳에 그것을 어떻게 표시 할 수 있습니까? 나는 메아리에서 인쇄하려고 돌아 왔지만 인쇄를 많이하지 못해서 나를 도와 줄 수 있니?짧은 코드가 내용 위에 나타납니다.
function easytimetable($atts, $content = null){
extract(shortcode_atts(array(
'id' => 1
), $atts));
$id = (int)$id;
$nonce = wp_create_nonce('displayPlanning');
$content = do_shortcode($content);
require_once SYET_PATH . 'public/class-easy-timetable-public.php';
$display = Easy_Timetable_Public::syet_displayPlanning($id, $nonce, $content);
//var_dump($content);
return $display;
}
function register_easytimetable_shortcodes(){
add_shortcode('easytimetable', 'easytimetable');
}
add_action('init', 'register_easytimetable_shortcodes');
이해할 수 없음 $ content = do_shortcode ($ content); – Stender