diff --git a/util/apop-customposts.php b/util/apop-customposts.php index 19a72d4..c6b4a29 100644 --- a/util/apop-customposts.php +++ b/util/apop-customposts.php @@ -120,6 +120,10 @@ if ( ! trait_exists( 'CUSTOMPOSTS' ) ) { if ( ! $per_page_option ) { return; } + + if( ! isset($per_page_option['custompost_archive'] ) ){ + return; + } $per_page_option_data = $per_page_option['custompost_archive'][ $post_type ]; if ( ! isset( $per_page_option_data ) ) {