The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
The devopment version seems to behave as expected.
Thank you
I solved the problem using the ‘sf_input_object_pre’ filter:
add_filter('sf_input_object_pre', 'pas_filterlabels_aan', 10, 2);
function pas_filterlabels_aan($input_object, $sfid) {
if($input_object['name'] == '_sfm_vakdomein') {
foreach($input_object['options'] as $option) {
$term_id = $option->value;
if ($option->value) {
$term = get_term_by('id', $term_id, 'cursussoort');
$term_label = $term->name;
$option->label = $term_label.' ('.$option->count.')';
}
}
}
return $input_object;
}
Replace ‘_sfm_vakdomein’ by your input object name (is shown in the query string) and ‘cursussoort’ by your taxonomy slug.
For me it’s resolved.
It’s up to you if you can live with a php notice generated as described.
Thank you for offering your help.
Meanwhile I did setup everything as I wanted.
Not seeing any results was probably due to me, making some error using the plugin for the first time.
Regarding the error message. I can reproduce this on my local site with WP_DEBUG set to true.
Search form is in a widget.
Add a post_meta field.
Use Date on a acf-date field(Date Input Format set to YYYYMMDD).
Set input type to Date.
Result:Error message in the widget(posts do show on the page, filter is functioning)
When setting the input type to Date Range (which is what I wanted in the end) the error message disappears.
© 2024 Search & Filter Support. All Rights Reserved.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
We also use cookies to store items in your cart as well as allowing your to login on the site.
You can adjust all of your cookie settings by navigating the tabs on the left hand side.
By continuing to use this site, you also agree to our Privacy Policy.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
*Other cookies used for logging in and cart functions will only be used when you use those features and cannot be disabled.
If you disable these cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookie enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!
More information about our Cookie Policy