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'],