Hi!
I'm using a query filter in a view block of 'esemenyek' which filters my results by current date, when loading the page, and it stopped working. I'm not sure what triggered the change, it might be the update of the theme I'm using (Kadence - it updates automticly).
I've tried to:
- upgrade wp and all Toolset plugins to the latest version.
Unfortunately it didn't solve the problem, but it spoiled the template editor in Toolset, so I've downgraded wp to 6.1.1 (at least the template editor is working with this version)
- change to a different theme
Didn't work.
- disable all other plugins except Toolset
Didn't work.
- change the JS code to a simple window.alert()
It seems, the JS code simply doesnt't apply to the page
The link to the site is: hidden link
Thanks
Gabor
The filter which I'm using is as follows:
add_filter('wpv_filter_query', 'remove_past_events', 10, 3);
function remove_past_events($query_args, $view_settings, $view_id) {
if($view_id == 395 && !isset( $_GET['wpv_view_count'] )) {
$time = time();
$query_args['meta_query'][] = array(array(
'key' => 'wpcf-esemeny-idopontja',
'value' => $time,
'compare' => '>=',
'type' => 'NUMERIC,'
));
}
return $query_args;
}