Skip Navigation

[Resolved] Load more button loads posts in wrong language

This thread is resolved. Here is a description of the problem and solution.

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 7 years 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
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)

This topic contains 2 replies, has 2 voices.

Last updated by linaS 7 years ago.

Assisted by: Christian Cox.

Author
Posts
#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...