From b996fd474202af986e119fb03800f7784647178f Mon Sep 17 00:00:00 2001 From: Pea Date: Mon, 6 Nov 2017 20:58:12 -0500 Subject: [PATCH 1/2] #44 Added `bundle` taxonomy to `blogs` --- includes/class-tni-core-taxonomy.php | 2 +- readme.txt | 2 ++ tni-core-functionality.php | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/class-tni-core-taxonomy.php b/includes/class-tni-core-taxonomy.php index e2a476d..97cc3e3 100644 --- a/includes/class-tni-core-taxonomy.php +++ b/includes/class-tni-core-taxonomy.php @@ -106,7 +106,7 @@ function register_bundles() { 'show_tagcloud' => true, 'show_in_rest' => true, ); - register_taxonomy( 'bundle', array( 'post' ), apply_filters( 'bundle_taxonomy_args', $args ) ); + register_taxonomy( 'bundle', array( 'post', 'blogs' ), apply_filters( 'bundle_taxonomy_args', $args ) ); } diff --git a/readme.txt b/readme.txt index 9caafe4..24fd2fe 100644 --- a/readme.txt +++ b/readme.txt @@ -22,6 +22,8 @@ This section describes how to install the plugin and get it working. == Changelog == += 1.3.2 Novembmer 6, 2017 = + = 1.3.1 October 30, 2017 = * #95 SEO customization for JetPack @link https://github.com/thenewinquiry/tni-theme/issues/95 * Added Twitter Description (`seo_description_twitter`) field diff --git a/tni-core-functionality.php b/tni-core-functionality.php index 1fd9828..e3a64c9 100644 --- a/tni-core-functionality.php +++ b/tni-core-functionality.php @@ -10,7 +10,7 @@ * Text Domain: tni-core * Domain Path: /languages * - * Version: 1.3.1 + * Version: 1.3.2 * * @package Tni_Core_Functionality */ @@ -52,7 +52,7 @@ * @return object Tni_Core */ function Tni_Core() { - $instance = Tni_Core::instance( __FILE__, 'l.3.1' ); + $instance = Tni_Core::instance( __FILE__, 'l.3.2' ); return $instance; } From bebe7231254eed35282e03bbddaa4ff951684490 Mon Sep 17 00:00:00 2001 From: Pea Date: Mon, 6 Nov 2017 21:01:46 -0500 Subject: [PATCH 2/2] #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