diff --git a/chapters.php b/chapters.php index 63c7aee4..4f4fdcb6 100644 --- a/chapters.php +++ b/chapters.php @@ -41,9 +41,15 @@ $query_args = array ( // Date query? if ( is_numeric( $ago ) && $ago > 0 ) { $query_args['date_query'] = array( + 'relation' => 'OR', array( 'after'=> "{$ago} days ago", 'inclusive' => true, + ), + array( + 'column' => 'post_modified', + 'after'=> "{$ago} days ago", + 'inclusive' => true, ) ); } elseif ( ! empty( $ago ) ) { diff --git a/collections.php b/collections.php index 0de63c02..e5cf06d1 100644 --- a/collections.php +++ b/collections.php @@ -39,9 +39,15 @@ $query_args = array ( // Date query? if ( is_numeric( $ago ) && $ago > 0 ) { $query_args['date_query'] = array( + 'relation' => 'OR', array( 'after'=> "{$ago} days ago", 'inclusive' => true, + ), + array( + 'column' => 'post_modified', + 'after'=> "{$ago} days ago", + 'inclusive' => true, ) ); } elseif ( ! empty( $ago ) ) { diff --git a/recommendations.php b/recommendations.php index f6c17467..389a5e88 100644 --- a/recommendations.php +++ b/recommendations.php @@ -39,9 +39,15 @@ $query_args = array ( // Date query? if ( is_numeric( $ago ) && $ago > 0 ) { $query_args['date_query'] = array( + 'relation' => 'OR', array( 'after'=> "{$ago} days ago", 'inclusive' => true, + ), + array( + 'column' => 'post_modified', + 'after'=> "{$ago} days ago", + 'inclusive' => true, ) ); } elseif ( ! empty( $ago ) ) { diff --git a/stories.php b/stories.php index 770547f2..757f95bf 100644 --- a/stories.php +++ b/stories.php @@ -51,9 +51,15 @@ $query_args = array ( // Date query? if ( is_numeric( $ago ) && $ago > 0 ) { $query_args['date_query'] = array( + 'relation' => 'OR', array( 'after'=> "{$ago} days ago", 'inclusive' => true, + ), + array( + 'column' => 'post_modified', + 'after'=> "{$ago} days ago", + 'inclusive' => true, ) ); } elseif ( ! empty( $ago ) ) {