get_results("SELECT ID,post_title,post_name,post_content,menu_order FROM {$wpdb->posts} " . " WHERE ID='$template_id' AND post_type='template' AND post_author='{$current_user->ID}'"); $title = $template_data[0]->post_title; $name = $template_data[0]->post_name; $content= $template_data[0]->post_content; $default_template= $template_data[0]->menu_order; } wp_enqueue_script( 'prototype' ); if ( user_can_richedit() ) wp_enqueue_script('editor'); wp_enqueue_script('media-upload'); wp_print_scripts(); ?>

/>