This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Custom datepicker

#26005
Ernest MarcinkoErnest Marcinko
Keymaster

Hi Stefan,

If the value is displayed, then it is still present in the wp_postmeta database. Make sure to clean that up, and it will disappear.

Alternatively, you can use a custom code to remove a specific value from a filter. Try adding this custom code to the functions.php in your theme/child theme directory. Before editing, please make sure to have a full site back-up just in case!

add_filter('asp_pre_get_front_filters', 'asp_change_a_filter', 10, 2);
function asp_change_a_filter($filters, $type) {
    $exclude = array('value1', 'value2');
    foreach ($filters as $k => $filter) {
        if ( $type == 'custom_field') {
            $filter->remove($exclude);
        }
    }
    return $filters;
}

You can add any number of values that you want to exclude from the list to the $exclude variable array.