I created a View with custom search: hidden link
when I select English the taxonomies "sesso" "specie" "vita assieme" do not display any results. Everything works in the language of default "Italian".
because ? what should I do ?
(I have to finish the website by Friday)
thank you
Please go to WPML > Languages and check "Store a language cookie to support AJAX filtering". Let me know if this does not resolve the problem.
Christian, I did various tests before answering.
I tried but without results.
the view in question is called "creature cerca"
I'd like if you can check with the credentials or you want to write the code.
Private reply fields are enabled here
Hi, it seems to be working for me so I must be missing something. Here is what I did:
- I logged in as toolset-support
- I went to WPML > Languages and checked the box "Store a language cookie to support language filtering for AJAX", then saved the change
- I went to /en/user-creatures and I selected "male" in the sesso filter
- The results update to show "amicone". This creature has the "male" term in wp-admin.
- I changed the sesso filter to be "female"
- The results update to show "carotina". This creature has the "female" term in wp-admin.
- I reset the sesso filter to sesso then added a stato filter "Bahamas"
- The results update to show "cipirillo". This creature has the stato-nazione custom field value "Bahamas"
Can you tell me more about the problem? What am I missing?
if you put the language in Italian in the footer and try the various filters you realize that they do not show all the results.
example: select Italian language and click sex: male. then do the same with the English language and see the difference.
if you try with the last filter "life together" in Italian and English, you see that in English it does not find anything.
christian, I found the problem!
page : hidden link consists of 2 views: "user creatures" and "creatures look"
in this way if the user login in he sees his creatures inserted and then he can look for the others.
if he does not login in he sees only the other creatures.
I noticed that research in English works well as long as I do not log in.
so the problem is to be found in the "user creatures" view
I do not understand, however, what's wrong!
example: select Italian language and click sex: male. then do the same with the English language and see the difference...if you try with the last filter "life together" in Italian and English, you see that in English it does not find anything.
I don't see anything wrong here. This is the expected behavior - the results are different in Italian and English because the Creature post type isn't translated. Go to this page: hidden link
Scroll down to the bottom of the post and open the Multilingual Content Setup panel. This post type is not translated, so the posts do not exist in both languages. If you have a question about how to translate posts, wpml.org is the best place to get assistance.
I do not want to translate the posts!
hidden link
Login - user: test - pass: 12345 and put the language in English.
you'll see that some searches have no posts. if you do not log in, all the searches will find the posts.
I do not want to translate the posts!
The "Creature" post type is set to "Do not translate" in Multilingual Content Setup. That means the Creature posts will only appear in the results in one language. If you want the Creature to appear in the results in all languages, then you must either translate the post or duplicate it into all languages.
if you do not log in, all the searches will find the posts.
I am seeing something different, so I need step-by-step instructions to replicate this. When I test, the results are completely different in Italian and English. Whether or not I'm logged in makes no difference. To test this on my local clone, I disabled the "Coming Soon" plugin. I checked "Store a language cookie to support language filtering for AJAX." Then in an incognito browser I visited /user-creatures and selected "maschio". The results are shown in the screenshot italian.png.
Then I switched to English in the footer, and the page reloaded. Then I chose "male", and the results are shown in the screenshot english.png. As you can see, the results are different. If you want to show all the posts in all the languages, you must translate or duplicate the posts into all languages.
thanks Christian, you are always very professional !!!
how can I set that automatically all types of post "creatures" are not translated but copied?
in Settings - multilingual content, there is no content copy!
Check this document on WPML's website that discusses the new option "Translatable - use translation if available or fallback to default language." You can use this option to always display the default language fallback, but it also means that posts must be created in the default language for this to work.
https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/
https://wpml.org/2018/01/wpml-3-9-released/
Hi Christian,
I asked for help on the wpml website, read what they tell me:
https://wpml.org/it/forums/topic/post-visibili-a-tutti/
thanks
Massimo
I do not speak Italian so I'm not sure what this says.
unfortunately I have to ask for a refund of WPML!
can not do a simple thing to make visible to everyone a post!
WPML staff suggests me to enter a code to automatically duplicate all posts and images.
This solution is not good because every post and images are duplicated for each language.