Hello @meolans,
First of all thank you very much for using the WP Travel plugin 🙂 .
The feature you have mentioned is currently not available in the plugin but the feature is noted as the requested feature and will be available in the next update of the plugin. Further please let us know what type of field do you want to add in the filter widget?
Now regarding your query about the code, we have made some changes in your code attempt and has provided the code you need to add to make the filter work with the facts.
if ( isset( $_GET['fact'] ) ) {
$fact = $_GET['fact'];
$query->set('meta_key', 'wp_travel_trip_facts');
$query->set('meta_query', array(
array(
'key' => 'wp_travel_trip_facts',
'value' => $fact,
'compare' => 'LIKE',
),
));
}
Here you need to pass the value to the fact and to be clear on this please refer to below-given screenshot:
https://prnt.sc/k35wto
Hope this helps.
Let us know if this works for you or not. If not then please provide the detail about the process you have done so that we can help you further,
Thank you.
Best Regards!!
Have a good day 🙂 .