Skip Navigation

[Résolu] Load more button loads posts in wrong language

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem: When I try to load more posts with an AJAX update, I am shown posts in the wrong language.

Solution: Adjust the settings in WPML > Languages to enable an AJAX cookie.

This support ticket is created Il y a 7 années. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par linaS Il y a 7 années.

Assisté par: Christian Cox.

Auteur
Publications
#589901

At English home page we've got list of last posts (view) with option to load more posts. When we click it, we get Hebrew posts instead of English ones. You can see this at /en/ (EN home page of the site). It's somehow related to whether we're logged in to admin. When we're at admin, proper language is loaded. When guest user is looking at the site, only HE posts are loaded. Note that we don't have any caching plugins installed there.

#589990
Screen Shot 2017-11-15 at 3.05.20 PM.png

Hi, you may need to adjust the settings in WPML > Languages to enable an AJAX cookie. Please see the screenshot here for an example. If this doesn't resolve the issue for you, the WPML forum is the appropriate place to get multilingual support. The WPML team is better educated on WPML and will have the most helpful information for you regarding translated content.

#590017

YES!
Thanks, it's working now...