From 6463ff1ad8294c07729d781fbb4291e885e958fa Mon Sep 17 00:00:00 2001 From: Tolumba Date: Fri, 4 Aug 2017 18:53:20 +0300 Subject: [PATCH] FIX: Posts not found - output If Lazy loading Pagination mode selected in projects settings. Tag archive page gets 'Posts not found' output. When tries to load more content. --- public/includes/class-projects-data.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/includes/class-projects-data.php b/public/includes/class-projects-data.php index ee55bf4..80288cd 100644 --- a/public/includes/class-projects-data.php +++ b/public/includes/class-projects-data.php @@ -317,6 +317,11 @@ public function get_more_projects() { $settings = $_POST['settings']; $term_type = ( 'category' == $this->default_options['filter-type'] ) ? CHERRY_PROJECTS_NAME . '_category' : CHERRY_PROJECTS_NAME . '_tag'; + + if( isset($settings['filter_type']) ){ + $term_type = ( 'category' == $settings['filter_type'] ) ? CHERRY_PROJECTS_NAME . '_category' : CHERRY_PROJECTS_NAME . '_tag'; + } + $query_args = array( $term_type => $settings['slug'], 'posts_per_page' => $settings['post_per_page'],