Skip Navigation

[Closed] Filter displaying all languages at once

This support ticket is created 4 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by Luo Yang 4 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1713333
custom-search-map.jpg

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

#1713343

P.s: I'm using WPML to translate the site.

#1713421

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.

#1713683
Map search 1.jpg
Map search 2.jpg

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>

#1714409

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

The topic ‘[Closed] Filter displaying all languages at once’ is closed to new replies.