Skip Navigation

[Resolved] Custom Fields & WPML: how to assign every translation to the right view?

This support ticket is created 5 years, 7 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 24 replies, has 2 voices.

Last updated by Shane 5 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#1278701

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2019-06-27 at 9.43.33 AM.png

Hi Luca,

So since you are using single line custom field and then setting your filter to pull the values, what is going to happen is that it will always pull all the values.

What you needed to have done was to set your filters to only display values based on the listed posts and the items that will return a result.

This is needed to be done with the select tag because it will show all the values otherwise, see screenshot

Thanks,
Shane

#1278723
Schermata 2019-06-27 alle 16.52.42.jpg
Schermata 2019-06-27 alle 16.49.43.jpg
Schermata 2019-06-27 alle 16.48.14.jpg

Mmmmmhhh...
Here (another view: hidden link) the results are below the dropdown menus, and also here (the OFFICIAL site: hidden link).
The modify that you made had put the results NEXT to the dropdown, not below.

For the "avoid all the values" problem, we've put this code in the "additional code" (image 1).

#1278763

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Luca,

Not sure I'm understanding exactly here.

The items are displaying the correct items in the dropdown correct?

Thanks,
Shane

#1278773
Schermata 2019-06-27 alle 17.15.37.jpg
Schermata 2019-06-27 alle 17.15.59.jpg

I'm trying to replicate you new filter in another VIEW (with 2 custom fields):
hidden link

How can I ADD the "Query Filter"?

#1278805

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2019-06-27 at 10.26.31 AM.png

Hi Luca,

Thank you for the clarity.

If you go to the screen options at the top of your view you should be able to enable these sections. See Screenshot

Please let me know if this helps.
Thanks,
Shane

#1278817
Schermata 2019-06-27 alle 17.28.34.jpg

Ok, found.

Now, for a "2 custom field" situation, this is what I need to do?

"And" or "or" ?

Last question, no other modify needed?

#1278991

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2019-06-27 at 1.34.04 PM.png

Hi Luca,

Yes that is correct.

The only other modification that is needed is to select this option here. See Screenshot

Thanks,
Shane

#1279293
Schermata 2019-06-28 alle 10.08.04.jpg
Schermata 2019-06-28 alle 10.06.11.jpg

Hi Shane,
So... I'm trying to replicate in my OFFICIAL SITE (hidden link) with no luck!
This is the view: hidden link, I didn't figure out what I have to modify!

"Specifications" is the translation of "Capitolati" that I set translating the content with WPML...

#1279497

A complete recap.
I have 4 views, this is the situation:
hidden link ---> DON'T WORK
hidden link ---> DON'T WORK
hidden link ---> DON'T WORK
hidden link ---> WORK !!!

I can't see any different settings between that... please help me! 😀

#1279593

Yeah!!!!

I've resolved my issue! I have to "OR", save, anche the back to "AND" and SAVE.
Strange but... now it works!

#1279689

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Luca,

I'm happy to see that the issue has been resolved for you 🙂

If you have any further questions on this please let me know.

If not then you can proceed to marking this one as resolved.

Thanks,
Shane