Skip to content

Commit

Permalink
#44 Added blogs to post query
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
misfist committed Nov 7, 2017
1 parent b996fd4 commit bebe723
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions includes/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit bebe723

Please sign in to comment.