From bebe7231254eed35282e03bbddaa4ff951684490 Mon Sep 17 00:00:00 2001 From: Pea Date: Mon, 6 Nov 2017 21:01:46 -0500 Subject: [PATCH] #44 Added `blogs` to post query Added `blogs` to tni_core_get_featured_bundle_posts() function so blogs posts will be included in the featured bundle query and excluded from the main post loop. --- includes/helpers.php | 1 + readme.txt | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/helpers.php b/includes/helpers.php index 5ff5ce1..b26e057 100644 --- a/includes/helpers.php +++ b/includes/helpers.php @@ -165,6 +165,7 @@ function tni_core_get_featured_bundle_posts() { $args = array( 'fields' => 'ids', + 'post_type' => array( 'post', 'blogs' ), 'posts_per_page' => -1, 'tax_query' => array( array( diff --git a/readme.txt b/readme.txt index 24fd2fe..d748795 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: misfist Tags: custom Requires at least: 4.7 Tested up to: 4.8.2 -Version: 1.3.1 +Version: 1.3.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -23,6 +23,9 @@ This section describes how to install the plugin and get it working. == Changelog == = 1.3.2 Novembmer 6, 2017 = +* #44 Added `bundle` taxonomy to `blogs` post type @link https://github.com/thenewinquiry/tni-core-functionality/issues/44 + * Added `blogs` to `bundle` + * Included `blogs` post type in `tni_core_get_featured_bundle_posts()` = 1.3.1 October 30, 2017 = * #95 SEO customization for JetPack @link https://github.com/thenewinquiry/tni-theme/issues/95