This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: WPML compatibility #11256
    weitlanerweitlaner
    Participant

    Hi Ernest,

    thanks for googling!
    Unfortunately it didn’t solve the problem. I already had tried the same thing with the icl_object_id() (by the way this method is marked as deprecated and will be removed from WPML 3.3).
    But thank you anyway for the hint to move it to a filter function. This way I can use my custom hook as well.

    Kind regards,
    Wolfgang

    in reply to: WPML compatibility #11245
    weitlanerweitlaner
    Participant

    Hi Ernest,

    thanks for your reply.
    I’ve tried to turn off the custom Ajax Handler but it didn’t help.
    But what I’ve accidently noticed during this attempt is that the issue is obviously related to caching (i.e. WP Rocket in our case).
    When I’m logged in to the WP backend (caching is completely disabled for the admin session) all search results are OK. As soon as I log off all search result links are being resolved to the base language as described above ….
    Anyway this seems strange to me. If the search scope is correct (the WPML language param correctly passed) and also the entire result including postID, title, description etc., why the link is not set correctly at the same time together with everything else?
    Unfortunately I cannot provide access to the backend on the production server so I have to stick with my quick & dirty fix for the moment. Maybe you’ll get other request in the near future as there should be quite a lot of people using a similar setup.

    Kind regards,
    Wolfgang

Viewing 2 posts - 1 through 2 (of 2 total)