Skip to content

Commit

Permalink
switches to is_post_type_archive
Browse files Browse the repository at this point in the history
addresses #6
  • Loading branch information
Nick Croft committed Aug 24, 2017
1 parent d8f138c commit b9029a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b9029a6

Please sign in to comment.