Skip to content

Commit

Permalink
Merge pull request #1385 from INN/1381-possible-fix
Browse files Browse the repository at this point in the history
Probable fix for #1381
  • Loading branch information
benlk committed Dec 13, 2016
2 parents a85393e + 0218986 commit 922ede2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/related-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ protected function get_series_posts() {
'orderby' => 'date',
'order' => 'ASC',
'ignore_sticky_posts' => 1,
'post__not_in' => array( $this->post_id ),
'date_query' => array(
'after' => $this->post->post_date,
),
Expand Down Expand Up @@ -647,6 +648,7 @@ protected function get_term_posts() {
'orderby' => 'date',
'order' => 'DESC',
'ignore_sticky_posts' => 1,
'post__not_in' => array( $this->post_id ),
'date_query' => array(
'after' => $this->post->post_date,
),
Expand Down
1 change: 1 addition & 0 deletions inc/widgets/largo-related-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ function widget( $args, $instance ) {
$rel_posts = new WP_Query( array(
'post__in' => $related->ids(),
'nopaging' => 1,
'post__not_in' => array( $post->ID ),
'posts_per_page' => $instance['qty'],
'ignore_sticky_posts' => 1
) );
Expand Down

0 comments on commit 922ede2

Please sign in to comment.