diff --git a/includes/admin/views/html-admin-settings.php b/includes/admin/views/html-admin-settings.php
index 710bedb..78f3300 100644
--- a/includes/admin/views/html-admin-settings.php
+++ b/includes/admin/views/html-admin-settings.php
@@ -120,6 +120,9 @@ class="button-secondary">
+
diff --git a/includes/class-sm-shortcodes.php b/includes/class-sm-shortcodes.php
old mode 100755
new mode 100644
index 6f757ba..16014d8
--- a/includes/class-sm-shortcodes.php
+++ b/includes/class-sm-shortcodes.php
@@ -560,7 +560,7 @@ function display_latest_series_image( $atts = array() ) {
$args = shortcode_atts( $args, $atts, 'latest_series' );
// Get latest series.
- $latest_series = $this->get_latest_series_with_image();
+ $latest_series = $this->get_latest_series_with_image( 0, $args['service_type'] );
// If for some reason we couldn't get latest series.
if ( null === $latest_series ) {
@@ -619,9 +619,12 @@ function display_latest_series_image( $atts = array() ) {
* @return WP_Term|null|false Term if found, null if there are no terms, false if there is no term with image.
*/
public function get_latest_series_with_image() {
+ //Get Order from settings
$default_orderby = SermonManager::getOption( 'archive_orderby' );
$default_order = SermonManager::getOption( 'archive_order' );
-
+ if(empty($default_order)){
+ $default_order = '';
+ }
$query_args = array(
'taxonomy' => 'wpfc_sermon_series',
'hide_empty' => false,
@@ -630,7 +633,6 @@ public function get_latest_series_with_image() {
switch ( $default_orderby ) {
case 'date_preached':
- case 'date':
$query_args += array(
'orderby' => 'meta_value_num',
'meta_key' => 'sermon_date',
@@ -963,7 +965,7 @@ function display_sermons( $atts = array() ) {
$query_args['meta_query'][] = array(
'key' => 'sermon_date',
'value' => $after,
- 'compare' => '=>',
+ 'compare' => '>=',
);
}
}
diff --git a/readme.txt b/readme.txt
index 2cfd748..34680a9 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: 5.1
Requires PHP: 5.3
-Stable tag: 2.15.15
+Stable tag: 2.15.16
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -123,17 +123,9 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man
## Changelog ##
### 2.15.16 ###
-* New: Add a setting to change Service Type label
-* New: Add compatibility for "Kerygma" theme
-* New: Add sermons per page setting
-* New: Add Uncode theme support
-* Fix: Player getting out of the div
-* Fix: Vimeo videos not seeking to the predefined timestamp
-* Fix: Preacher label not being replaced everywhere
-* Fix: Not getting the real latest series image via "latest_series" shortcode
-* Fix: Some terms (series) not being ordered correctly by sermon date
-* Fix: Filtering not working when sermons are on page above 1
-* Dev: Add a filter to disable sidebar on supported themes
+Fix: "after" parameter not working in "[sermons]" shortcode
+Fix: Improve [latest_series] shortcode
+New: Add sidebar in dashboard compatibility for Pro version
### 2.15.15 ###
* Fix: RSS feed not working
@@ -251,4 +243,4 @@ Visit the [plugin homepage](https://wpforchurch.com/wordpress-plugins/sermon-man
* Fix: Taxonomy feed URLs not picked up by Sermon Manager
* Fix: Allow deleted imported sermons to be re-imported
-Note: The rest of the changelog is in changelog.txt
+Note: The rest of the changelog is in changelog.txt
\ No newline at end of file
diff --git a/sermons.php b/sermons.php
index 2cd93fc..6b8dc73 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.15
+ * Version: 2.15.16
* Author: WP for Church
* Author URI: https://www.wpforchurch.com/
* Requires at least: 4.5