diff --git a/includes/admin/sm-cmb-functions.php b/includes/admin/sm-cmb-functions.php
index 4e3a5da..bfe3bd9 100755
--- a/includes/admin/sm-cmb-functions.php
+++ b/includes/admin/sm-cmb-functions.php
@@ -11,16 +11,7 @@
* Define the metaboxes and field configurations.
*/
function wpfc_sermon_metaboxes() {
-
- $cmb = new_cmb2_box( array(
- 'id' => 'wpfc_sermon_details',
- 'title' => esc_html__( 'Sermon Details', 'sermon-manager-for-wordpress' ),
- 'object_types' => array( 'wpfc_sermon' ), // Post type.
- 'context' => 'normal',
- 'priority' => 'high',
- 'show_names' => true, // Show field names on the left.
- ) );
-
+ // Get the date format.
switch ( \SermonManager::getOption( 'date_format' ) ) {
case '0':
$date_format_label = 'mm/dd/YYYY';
@@ -44,7 +35,15 @@ function wpfc_sermon_metaboxes() {
break;
}
- $cmb->add_field( array(
+ $sermon_details_meta = new_cmb2_box( array(
+ 'id' => 'wpfc_sermon_details',
+ 'title' => esc_html__( 'Sermon Details', 'sermon-manager-for-wordpress' ),
+ 'object_types' => array( 'wpfc_sermon' ), // Post type.
+ 'context' => 'normal',
+ 'priority' => 'high',
+ 'show_names' => true, // Show field names on the left.
+ ) );
+ $sermon_details_meta->add_field( array(
'name' => esc_html__( 'Date Preached', 'sermon-manager-for-wordpress' ),
// translators: %s date format, effectively d/m/Y
or the like.
'desc' => esc_html__( '(optional)', 'sermon-manager-for-wordpress' ) . '
' . wp_sprintf( esc_html__( 'format: %s', 'sermon-manager-for-wordpress' ), $date_format_label ),
@@ -52,8 +51,7 @@ function wpfc_sermon_metaboxes() {
'type' => 'text_date_timestamp',
'date_format' => $date_format,
) );
-
- $cmb->add_field( array(
+ $sermon_details_meta->add_field( array(
'name' => esc_html__( 'Service Type', 'sermon-manager-for-wordpress' ),
// translators: %s here.
'desc' => wp_sprintf( esc_html__( 'Select the type of service. Modify service types %s.', 'sermon-manager-for-wordpress' ), 'here' ),
@@ -62,8 +60,7 @@ function wpfc_sermon_metaboxes() {
'show_option_none' => true,
'options' => cmb2_get_term_options( 'wpfc_service_type' ),
) );
-
- $cmb->add_field( array(
+ $sermon_details_meta->add_field( array(
'name' => esc_html__( 'Main Bible Passage', 'sermon-manager-for-wordpress' ),
// translators: %1$s see msgid "John 3:16-18", effectively John 3:16-18
.
// translators: %2$s see msgid "John 3:16-18, John 2:11-12", effectively John 3:16-18, Luke 2:1-3
.
@@ -71,7 +68,7 @@ function wpfc_sermon_metaboxes() {
'id' => 'bible_passage',
'type' => 'text',
) );
- $cmb->add_field( array(
+ $sermon_details_meta->add_field( array(
'name' => esc_html__( 'Description', 'sermon-manager-for-wordpress' ),
'desc' => esc_html__( 'Type a brief description about this sermon, an outline, or a full manuscript', 'sermon-manager-for-wordpress' ),
'id' => 'sermon_description',
@@ -82,7 +79,7 @@ function wpfc_sermon_metaboxes() {
),
) );
- $cmb2 = new_cmb2_box( array(
+ $sermon_files_meta = new_cmb2_box( array(
'id' => 'wpfc_sermon_files',
'title' => esc_html__( 'Sermon Files', 'sermon-manager-for-wordpress' ),
'object_types' => array( 'wpfc_sermon' ),
@@ -90,7 +87,7 @@ function wpfc_sermon_metaboxes() {
'priority' => 'high',
'show_names' => true,
) );
- $cmb2->add_field( array(
+ $sermon_files_meta->add_field( array(
'name' => esc_html__( 'Location of MP3', 'sermon-manager-for-wordpress' ),
'desc' => esc_html__( 'Upload an audio file or enter an URL.', 'sermon-manager-for-wordpress' ),
'id' => 'sermon_audio',
@@ -99,26 +96,26 @@ function wpfc_sermon_metaboxes() {
'add_upload_file_text' => 'Add Sermon Audio', // Change upload button text. Default: "Add or Upload File".
),
) );
- $cmb2->add_field( array(
+ $sermon_files_meta->add_field( array(
'name' => esc_html__( 'MP3 Duration', 'sermon-manager-for-wordpress' ),
// translators: %s see msgid "hh:mm:ss", effectively hh:mm:ss
.
'desc' => wp_sprintf( esc_html__( 'Length in %s format (fill out only for remote files, local files will get data calculated by default)', 'sermon-manager-for-wordpress' ), '' . esc_html__( 'hh:mm:ss', 'sermon-manager-for-wordpress' ) . '
' ),
'id' => '_wpfc_sermon_duration',
'type' => 'text',
) );
- $cmb2->add_field( array(
+ $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',
'type' => 'textarea_code',
) );
- $cmb2->add_field( apply_filters( 'sm_cmb2_field_sermon_video_link', array(
+ $sermon_files_meta->add_field( apply_filters( 'sm_cmb2_field_sermon_video_link', array(
'name' => esc_html__( 'Video Link', 'sermon-manager-for-wordpress' ),
'desc' => esc_html__( 'Paste your link for Vimeo, Youtube, Facebook, or direct video file here', 'sermon-manager-for-wordpress' ),
'id' => 'sermon_video_link',
'type' => 'text_url',
) ) );
- $cmb2->add_field( array(
+ $sermon_files_meta->add_field( array(
'name' => esc_html__( 'Sermon Notes', 'sermon-manager-for-wordpress' ),
'desc' => esc_html__( 'Upload a pdf file or enter an URL.', 'sermon-manager-for-wordpress' ),
'id' => 'sermon_notes',
@@ -128,7 +125,7 @@ function wpfc_sermon_metaboxes() {
// Change upload button text. Default: "Add or Upload File".
),
) );
- $cmb2->add_field( array(
+ $sermon_files_meta->add_field( array(
'name' => esc_html__( 'Bulletin', 'sermon-manager-for-wordpress' ),
'desc' => esc_html__( 'Upload a pdf file or enter an URL.', 'sermon-manager-for-wordpress' ),
'id' => 'sermon_bulletin',
@@ -138,6 +135,14 @@ function wpfc_sermon_metaboxes() {
// Change upload button text. Default: "Add or Upload File".
),
) );
+
+ /**
+ * Allows to add/remove SM CMB2 fields.
+ *
+ * @param CMB2 $sermon_details_meta Sermon Details meta.
+ * @param CMB2 $sermon_files_meta Sermon Files meta box.
+ */
+ do_action( 'sm_cmb2_meta_fields', $sermon_details_meta, $sermon_files_meta );
}
add_action( 'cmb2_admin_init', 'wpfc_sermon_metaboxes' );
diff --git a/includes/sm-template-functions.php b/includes/sm-template-functions.php
index 816105a..f836752 100755
--- a/includes/sm-template-functions.php
+++ b/includes/sm-template-functions.php
@@ -484,7 +484,6 @@ function wpfc_sermon_single_v2( $return = false, $post = null ) {
*/
function wpfc_sermon_excerpt_v2( $return = false, $args = array() ) {
global $post;
- global $wp_the_query;
if ( empty( $args ) ) {
$args = array(
diff --git a/readme.txt b/readme.txt
index ca1f60d..e7f634b 100755
--- a/readme.txt
+++ b/readme.txt
@@ -5,7 +5,7 @@ Tags: church, sermon, sermons, preaching, podcasting, manage, managing, podcasts
Requires at least: 4.7.0
Tested up to: 4.9
Requires PHP: 5.3
-Stable tag: 2.15.0
+Stable tag: 2.15.1
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -103,6 +103,9 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man
2. Sermon Files
## Changelog ##
+### 2.15.1 ###
+* Fix: Multi-term filter for feeds not working
+
### 2.15.0 ###
* New: Add ability to override Sermon Manager's CSS by putting "sermon.css" file in theme (thanks @zSeriesGuy)
* New: Add default image during installation (thanks @zSeriesGuy)
diff --git a/sermons.php b/sermons.php
index 58dc28c..0287e24 100755
--- a/sermons.php
+++ b/sermons.php
@@ -3,7 +3,7 @@
* Plugin Name: Sermon Manager for WordPress
* Plugin URI: https://www.wpforchurch.com/products/sermon-manager-for-wordpress/
* Description: Add audio and video sermons, manage speakers, series, and more.
- * Version: 2.15.0
+ * Version: 2.15.1
* Author: WP for Church
* Author URI: https://www.wpforchurch.com/
* Requires at least: 4.5
@@ -448,8 +448,7 @@ public function render_sermon_into_content( $post_ID = 0, $post = null, $skip_ch
$description = strip_tags( trim( get_post_meta( $post->ID, 'sermon_description', true ) ) );
if ( '' !== $description ) {
- $content .= PHP_EOL . PHP_EOL;
- $content .= $description;
+ $content .= ' | ' . $description;
}
/**
diff --git a/views/archive-wpfc_sermon.php b/views/archive-wpfc_sermon.php
index 7844576..3758e90 100644
--- a/views/archive-wpfc_sermon.php
+++ b/views/archive-wpfc_sermon.php
@@ -32,7 +32,7 @@
}
echo '';
else :
- __( 'Sorry, but there aren\'t any posts matching your query.' );
+ echo __( 'Sorry, but there aren\'t any posts matching your query.' );
endif;
?>
diff --git a/views/partials/content-sermon-wrapper-end.php b/views/partials/content-sermon-wrapper-end.php
index 59d48e3..64a058c 100644
--- a/views/partials/content-sermon-wrapper-end.php
+++ b/views/partials/content-sermon-wrapper-end.php
@@ -80,6 +80,11 @@
get_sidebar();
echo '';
break;
+ case 'genesis':
+ echo '';
+ get_sidebar();
+ echo '';
+ break;
default:
ob_start();
get_sidebar();
diff --git a/views/partials/content-sermon-wrapper-start.php b/views/partials/content-sermon-wrapper-start.php
index 593b754..98a687c 100644
--- a/views/partials/content-sermon-wrapper-start.php
+++ b/views/partials/content-sermon-wrapper-start.php
@@ -67,6 +67,9 @@
case 'x':
echo '