From b9029a6f36577d4e951c24d678bc2032c392f23a Mon Sep 17 00:00:00 2001 From: Nick Croft Date: Thu, 24 Aug 2017 08:06:47 -0400 Subject: [PATCH] switches to is_post_type_archive addresses #6 --- plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.php b/plugin.php index 5c13eb6..c0bd5b8 100644 --- a/plugin.php +++ b/plugin.php @@ -231,7 +231,7 @@ function genesis_portfolio_archive_pre_get_posts( $query ) { return; } - if ( ! $query->is_archive( 'portfolio' ) && ! $query->is_tax( 'portfolio-type' ) ) { + if ( ! $query->is_post_type_archive( 'portfolio' ) && ! $query->is_tax( 'portfolio-type' ) ) { return; }