Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Issue with result group by meta key › Reply To: Issue with result group by meta key
April 24, 2019 at 10:29 am
#22287
Participant
We have done the same for first page load before.
You have added the following function to do the same.
add_filter(‘asp_query_args’, ‘asp_reset_date_filter’);
function asp_reset_date_filter($args) {
if ( isset($_POST[‘autop’]) ) {
foreach ( $args[‘post_meta_filter’] as $k => $v ) {
if ( $v[‘key’] == ‘_event_start’ ) {
unset($args[‘post_meta_filter’][$k]);
}
}
}
return $args;
}
Did you remember this, I am saying to do the same for event type.