Can you share a link to your sitemap? There might be another plugin running or a static file in your site root.
Polylang is fully supported so if there is a problem, I invite you to work with me to fix it.
Thread Starter
zesseb
(@zesseb)
Thanks for your answer.
I noticed that the function Core/get_excluded does not work.
When you call the global $polylang, it seems all is fine, but when you call the function $exclude += $polylang->get_translations('post', $id);
all stops.
I saw that this function should be $exclude += $polylang->get_translations($id);
but it also does not work.
Here is my sitemap
Thread Starter
zesseb
(@zesseb)
I found a solution: I replaced each call to $polylang->get_translations
in core.php by $polylang->model->get_translations
and it seems to work fine now!
Hi zesseb, thanks for your feedback! I’ll look into this ASAP…
Just tested your code and it’s now in the 4.6.2 release. Thanks again!
Please let me know if you find anything still wrong. And if I may ask: I hope you reconsider your 1 star review? 😉
Thread Starter
zesseb
(@zesseb)
I’m glad to have contributed to perform this very powerful plugin! Sorry for my first 1 star review, I would like to rate it with 5 stars now, but I don’t know how to change it?!?
Thanks to your contribution, full Polylang compatibility has been restored! A pleasure to work with you 🙂