Problem with GridBuilder WP Text Search after Migration
-
Hi everyone. I have a weird scenario, maybe someone can help.
I have a site where I list the events from the events calendar in a grid and with facets from gridbuilder WP. All worked fine, until I migrated the events to the new database format. After that, the TEXT SEARCH facet in Gridbuilder did not work any more. I had a long exchange with their support who tried to help and we got to a partial solution (text search worked fine after this) but the ordering of the events was broken after that.
This is the code, I was given by support:
add_filter(
'wp_grid_builder/grid/query_args',
function( $query_args ) {
$query_args['tec_events_ignore'] = true;
$query_args['tribe_suppress_query_filters'] = true;
return $query_args;
}
);And in the Gridbuilder settings, I was ordering by (numeric) _EventStartDate . THAT Order is broken, when I use the code above. If I don’t, the order is fine but the Text search does not work any more.
So it seems this is a fatal combination of Gridbuilder WP and the events calendar.
Any info/insight/tipps on this?
Thank so much
- You must be logged in to reply to this topic.