Hi there,
I created a custom search that has a filter that is displaying all languages at once. Please see the attached screenshot. The filter on the left (taxonomies) is working well but the filter on the right (custom fields) is displaying everything. Any idea on what is wrong there?
Kind regards,
Sintia Oliveira
P.s: I'm using WPML to translate the site.
Hello,
How do you setup the "filter that is displaying all languages at once"? are you using custom codes? can you share it here?
I assume we are talking about the dropdown "Guests" in your screenshot:
https://toolset.com/wp-content/uploads/2020/07/1713333-custom_search_map.jpg
Please check the options in dropdown "Guests", it seems that they are options in different languages, since you are displaying posts in all language, so it should be expected result: Options in all languages.
I set up a custom field filter for "guests" (screenshot 1) and added a filter in search and pagination (screenshot 2). Here's the code:
<div class="col-6 col-md-5">
<label>[wpml-string context="wpv-views"]Guests[/wpml-string]</label>
[wpv-control-postmeta type="select" field="wpcf-number-of-people" default_label="--Select--" format="%%NAME%%" url_param="wpv-wpcf-number-of-people"]
</div>
As I mentioned above:
since you are displaying posts in all language, so it should be expected result: Toolset search form outputs "number-of-people" options in all languages(displaying everything)
What options do you expect to output?
Please elaborate the questions with more details, thanks