updated plugin GP Premium
version 2.1.1
This commit is contained in:
@ -220,7 +220,13 @@ class GeneratePress_Conditions {
|
||||
$object = $queried_object->term_id;
|
||||
}
|
||||
} elseif ( is_post_type_archive() ) {
|
||||
$location = 'archive:' . $wp_query->get( 'post_type' );
|
||||
$post_type = $wp_query->get( 'post_type' );
|
||||
|
||||
if ( is_array( $post_type ) ) {
|
||||
$location = 'archive:' . $post_type[0];
|
||||
} else {
|
||||
$location = 'archive:' . $post_type;
|
||||
}
|
||||
} elseif ( is_singular() ) {
|
||||
|
||||
if ( is_object( $post ) ) {
|
||||
|
Reference in New Issue
Block a user