$category_taxonomy, 'hide_empty' => true, 'orderby' => 'name', 'order' => 'ASC', ] ); } if ( taxonomy_exists( $location_taxonomy ) ) { $adqs_location_terms = get_terms( [ 'taxonomy' => $location_taxonomy, 'hide_empty' => true, 'orderby' => 'name', 'order' => 'ASC', ] ); } if ( taxonomy_exists( $tags_taxonomy ) ) { $adqs_tags = get_terms( [ 'taxonomy' => $tags_taxonomy, 'hide_empty' => true, 'orderby' => 'name', 'order' => 'ASC', ] ); } } $sidebar_id = $w_args['id'] ?? ''; if ( ( $sidebar_id !== 'adqs_advanced_sidebar_filter' ) && ! ( isset( $w_instance['listing_url'] ) && ! empty( $w_instance['listing_url'] ) ) ) { return ''; } // exclude search field $excludedFilterFields = ! empty( adqs_get_setting_option( 'excludedFilterFields' ) ) ? adqs_get_setting_option( 'excludedFilterFields' ) : []; ?>