esc_attr(strip_tags($_POST['postTitle'])), 'post_content' => strip_tags($_POST['video-body'], '

'), 'post-type' => 'post', 'post_category' => array($_POST['cat']), 'tags_input' => explode(',', $_POST['post_tags']), 'comment_status' => 'open', 'ping_status' => 'open', 'post_status' => $beTubepostStatus ); $post_id = wp_insert_post($post_information); $betubeVideoLink = $_POST['video_link']; $betubeVideoLink2 = $_POST['video_link2']; $betubeVideoLink3 = $_POST['video_link3']; $videoCustomVideoLink = $_POST['video_custom_link']; $betubeEmbedCode = $_POST['video_embed_code']; $betubeVideoLayout = $_POST['radio-btns-sprite']; $betubeFeaturedIMGURL = $_POST['featured-image-url']; $betubeIMGIDURL = $_POST['criteria-image-id']; $betubePostTime = $_POST['post_time']; $betubePostQuality = $_POST['post_quality']; $hd_post = $_POST['hd_post']; if(isset($hd_post)){ $betubeHDPost = '1'; }else{ $betubeHDPost = '2'; } update_post_meta($post_id, 'jtheme_video_layout', $betubeVideoLayout, $allowed); if(!empty($videoCustomVideoLink)){ update_post_meta($post_id, 'jtheme_video_file', $videoCustomVideoLink, $allowed); } if(!empty($betubeEmbedCode)){ update_post_meta($post_id, 'jtheme_video_code', $betubeEmbedCode, $allowed); } if(!empty($betubeVideoLink)){ update_post_meta($post_id, 'jtheme_video_url', $betubeVideoLink, $allowed); } /*Extra Video Links*/ if(!empty($betubeVideoLink2)){ update_post_meta($post_id, 'single_video_link_second', $betubeVideoLink2, $allowed); } if(!empty($betubeVideoLink3)){ update_post_meta($post_id, 'single_video_link_third', $betubeVideoLink3, $allowed); } /*Extra Video Links End*/ /*Duration*/ if(!empty($betubePostTime)){ update_post_meta($post_id, 'post_time', $betubePostTime, $allowed); } /*Duration*/ /*Quality*/ if(!empty($betubePostQuality)){ update_post_meta($post_id, 'post_quality', $betubePostQuality, $allowed); } /*Quality*/ /*HD*/ if(!empty($betubeHDPost)){ update_post_meta($post_id, 'hd_post', $betubeHDPost, $allowed); } /*HD*/ $permalink = get_permalink( $post_id ); global $post; /*Video Uploading*/ if ( isset($_FILES['upload_attachment']) ) { $count = '0'; $files = $_FILES['upload_attachment']; foreach ($files['name'] as $key => $value) { if ($files['name'][$key]) { $file = array( 'name' => $files['name'][$key], 'type' => $files['type'][$key], 'tmp_name' => $files['tmp_name'][$key], 'error' => $files['error'][$key], 'size' => $files['size'][$key] ); $_FILES = array("upload_attachment" => $file); foreach ($_FILES as $file => $array) { $newupload = betube_insert_attachment($file,$post->ID); $attachvideo = wp_get_attachment_url( $newupload); add_post_meta($post_id, 'jtheme_video_file', $attachvideo); add_post_meta($post_id, '_video_thumbnail', $newupload); set_post_thumbnail( $post_id, $newupload ); $count++; } } } } /*Video Uploading*/ set_post_thumbnail( $post_id, $betubeIMGIDURL ); /*If Post Insert Successfully*/ wp_redirect( $permalink ); exit; }/*End If there is no error*/ } get_header(); betube_breadcrumbs(); ?> ID); $current_page_id = $page->ID; $current_user = wp_get_current_user(); $user_ID = $current_user->ID; $betubeProfileIMG = get_user_meta($user_ID, "betube_author_profile_bg", true); if(!empty($betubeProfileIMG)){ $betubeProfileIMG = betube_get_image_url($betubeProfileIMG); } ?>

author
user_email; $avatar_url = betube_get_avatar_url($authorID, $size = '150' ); ?>
profile author img

:

:

: Video URL > Video File.", 'betube') ?>