Problem:
I've been requested to add an additional taxonomy for English and Spanish languages.
My question is whether it is best to use a new Custom Field or a new Taxonomy to distinguish the languages?
Also, how can I set up a separate language views?
Is there a tutorial of some sort?
Solution:
It depends on your website request, if your website will add more languages in the future, I suggest you try with custom taxonomy "languages", so you will be able to add more terms when you create/edit a "Channels" post.
If there are only two "languages" items in your website in the future, then you can setup it as a custom field "languages", then all the options are controlled by website administrator.
If it is a taxonomy "languages", you can add a filter in your post view:
Value set by View shortcode attribute "languages"
Then display the view's shortcode like this:
[wpv-view name="MY-VIEW-NAME" languages="english"]
[wpv-view name="MY-VIEW-NAME" languages="Spanish"]
Relevant Documentation:
https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/
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 2 replies, has 2 voices.
Last updated by 6 years, 1 month ago.
Assisted by: Luo Yang.