why my shortcode of easytimetable always BEFORE all content? How can i display it where I want? I tried to change from echo,print to return but im not coding much so can u help me?
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');