Skip to content

Commit

Permalink
Merge pull request #73 from thenewinquiry/0.7.7
Browse files Browse the repository at this point in the history
0.7.7
  • Loading branch information
frnsys authored May 16, 2017
2 parents 78df12b + 38e8ad7 commit 3a37ada
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion home.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@

<?php if ( 4 == $count ) : ?>

<?php $prev_post = $post ?>
<?php $post = get_posts( array( 'post_type' => 'magazines' ) )[0]; ?>
<?php get_template_part( 'template-parts/content', 'latest-issue' ); ?>

<?php $post = $prev_post ?>
<?php endif; ?>

<?php get_template_part( 'template-parts/content' ); ?>
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 @@ Theme URI: https://github.com/misfist/tni-theme
Tags: Blog, Magazine
Requires at least: 4.5.0
Tested up to: 4.7.4
Version: 0.7.5
Version: 0.7.7
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -13,6 +13,9 @@ Custom theme for The New Inquiry, based on Gridbox theme.

== Changelog ==

== 0.7.7 May 16, 2017 ==
* Fixed home page post loop polluting post variable

== 0.7.6 May 16, 2017 ==
* Fixed home page post loop skipping fourth post

Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ Description: Custom theme for The New Inquiry.
Author: Pea
Author URI: https://github.com/misfist
Template: gridbox
Version: 0.7.6
Version: 0.7.7
Text Domain: tni
*/

0 comments on commit 3a37ada

Please sign in to comment.