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; }