Languages Everywhere plugin compatibility

Home Forums WordPress Plugins Language Switcher Languages Everywhere plugin compatibility

Viewing 1 reply thread
  • Author
    Posts
    • #8845
      Mohamed El Haddaoui
      Participant

      Could you please provide assistance with the author page translation issue on my website? I’ve been using your plugin, and everything seems to be functioning correctly except for this particular aspect. When I click on the translated author page, nothing happens. Is there any support available from your end to address this matter?

      • This topic was modified 4 months, 2 weeks ago by Rafasashi.
    • #8851
      Rafasashi
      Keymaster

      Following up on our recent WhatsApp conversation:

      We identified that the issue came from a plugin generating pages without setting the global $post variable.

      This omission prevents the Language Switcher from retrieving the post ID.

      For others encountering this problem, a workaround involves passing the post ID to the Language Switcher via a custom script, as demonstrated below:

      add_action('lsw_get_current_post_id',function($post_id){
      	
              // fetch the custom post id here
      	return $post_id;
      	
      },999999,1);
Viewing 1 reply thread
  • The topic ‘Languages Everywhere plugin compatibility’ is closed to new replies.