diff --git a/includes/admin/export/class-sm-export-sm.php b/includes/admin/export/class-sm-export-sm.php index 1258651..a2d0ce1 100644 --- a/includes/admin/export/class-sm-export-sm.php +++ b/includes/admin/export/class-sm-export-sm.php @@ -399,7 +399,7 @@ function sermon_return_attachment_id_from_url( $attachment_url ) { $meta_value_array = array(); $meta_key_name = array( 'sermon_audio', - 'sermon_video', + 'sermon_video_emebed', 'sermon_video_link', 'sermon_notes', 'sermon_bulletin', diff --git a/includes/admin/import/class-sm-import-sb.php b/includes/admin/import/class-sm-import-sb.php index c7bdceb..b88188f 100644 --- a/includes/admin/import/class-sm-import-sb.php +++ b/includes/admin/import/class-sm-import-sb.php @@ -501,7 +501,7 @@ private function _import_sermons() { } elseif ( 'code' === $item->type ) { $this->log( 'Found video embed!', 253 ); - update_post_meta( $id, 'sermon_video', base64_decode( $item->name ) ); + update_post_meta( $id, 'sermon_video_embed', base64_decode( $item->name ) ); } } diff --git a/includes/admin/import/class-sm-import-se.php b/includes/admin/import/class-sm-import-se.php index eb05002..52f85cb 100644 --- a/includes/admin/import/class-sm-import-se.php +++ b/includes/admin/import/class-sm-import-se.php @@ -423,7 +423,7 @@ private function _import_messages() { // Set video embed. if ( ! empty( $message->embed_code ) ) { - update_post_meta( $id, 'sermon_video', $message->embed_code ); + update_post_meta( $id, 'sermon_video_embed', $message->embed_code ); } // Set views. diff --git a/includes/admin/sm-cmb-functions.php b/includes/admin/sm-cmb-functions.php index efeb668..80aef9c 100755 --- a/includes/admin/sm-cmb-functions.php +++ b/includes/admin/sm-cmb-functions.php @@ -109,7 +109,7 @@ function wpfc_sermon_metaboxes() { $sermon_files_meta->add_field( array( 'name' => esc_html__( 'Video Embed Code', 'sermon-manager-for-wordpress' ), 'desc' => esc_html__( 'Paste your embed code for Vimeo, Youtube, Facebook, or direct video file here', 'sermon-manager-for-wordpress' ), - 'id' => 'sermon_video', + 'id' => 'sermon_video_embed', 'type' => 'textarea_code', ) ); $sermon_files_meta->add_field( apply_filters( 'sm_cmb2_field_sermon_video_link', array( diff --git a/includes/class-sm-api.php b/includes/class-sm-api.php index 8a61cbd..9693379 100644 --- a/includes/class-sm-api.php +++ b/includes/class-sm-api.php @@ -133,7 +133,7 @@ public function add_custom_data( $response ) { 'Views' => array( '' ), 'bible_passage' => array( '' ), 'sermon_description' => array( '' ), - 'sermon_video' => array( '' ), + 'sermon_video_embed' => array( '' ), 'sermon_video_link' => array( '' ), 'sermon_bulletin' => array( '' ), '_thumbnail_id' => array( '' ), @@ -149,7 +149,7 @@ public function add_custom_data( $response ) { $data['_views'] = $post_meta['Views'][0]; $data['bible_passage'] = $post_meta['bible_passage'][0]; $data['sermon_description'] = $post_meta['sermon_description'][0]; - $data['sermon_video_embed'] = $post_meta['sermon_video'][0]; + $data['sermon_video_embed'] = $post_meta['sermon_video_embed'][0]; $data['sermon_video_url'] = $post_meta['sermon_video_link'][0]; $data['sermon_bulletin'] = $post_meta['sermon_bulletin'][0]; $data['_featured_url'] = wp_get_attachment_url( $post_meta['_thumbnail_id'][0] ); diff --git a/includes/sm-deprecated-functions.php b/includes/sm-deprecated-functions.php index 31516b9..b119c51 100644 --- a/includes/sm-deprecated-functions.php +++ b/includes/sm-deprecated-functions.php @@ -358,7 +358,7 @@ function wpfc_sermon_media() { $html .= ''; } else { $html .= '
'; - $html .= do_shortcode( get_wpfc_sermon_meta( 'sermon_video' ) ); + $html .= do_shortcode( get_wpfc_sermon_meta( 'sermon_video_embed' ) ); $html .= '
'; } diff --git a/views/partials/content-sermon-single.php b/views/partials/content-sermon-single.php index 8665f80..bfe58c0 100644 --- a/views/partials/content-sermon-single.php +++ b/views/partials/content-sermon-single.php @@ -77,9 +77,9 @@ - +
- +