From f91a4dae188a91d281f4fe0bc7d8e7eb78b00f3c Mon Sep 17 00:00:00 2001 From: Pea Date: Tue, 3 Oct 2017 20:42:49 -0400 Subject: [PATCH] Added tags to blogs Added tags (`post_tag`) taxonomy to blogs post type @link https://github.com/thenewinquiry/tni-theme/issues/91 --- includes/class-tni-core-cpt.php | 2 +- readme.txt | 5 ++++- tni-core-functionality.php | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/includes/class-tni-core-cpt.php b/includes/class-tni-core-cpt.php index ec0916e..6e813e2 100644 --- a/includes/class-tni-core-cpt.php +++ b/includes/class-tni-core-cpt.php @@ -152,7 +152,7 @@ public function register_blogs() { 'description' => __( 'Post type for blogs', 'tni-core' ), 'labels' => apply_filters( 'register_blogs_labels', $labels ), 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'custom-fields', ), - 'taxonomies' => array( 'blog-types' ), + 'taxonomies' => array( 'blog-types', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, diff --git a/readme.txt b/readme.txt index 3d72f53..370d4dd 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 -Version: 1.2.11 +Version: 1.2.12 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -22,6 +22,9 @@ This section describes how to install the plugin and get it working. == Changelog == += 1.2.12 October 3, 2017 = +* Added tags (`post_tag`) taxonomy to blogs post type @link https://github.com/thenewinquiry/tni-theme/issues/91 + = 1.2.11 October 3, 2017 = * #92 Added `audio_url` field to blogs post type. @link https://github.com/thenewinquiry/tni-theme/issues/92 diff --git a/tni-core-functionality.php b/tni-core-functionality.php index b2120bd..2bf8d1d 100644 --- a/tni-core-functionality.php +++ b/tni-core-functionality.php @@ -10,7 +10,7 @@ * Text Domain: tni-core * Domain Path: /languages * - * Version: 1.2.11 + * Version: 1.2.12 * * @package Tni_Core_Functionality */ @@ -52,7 +52,7 @@ * @return object Tni_Core */ function Tni_Core() { - $instance = Tni_Core::instance( __FILE__, 'l.2.11' ); + $instance = Tni_Core::instance( __FILE__, 'l.2.12' ); return $instance; }