Next Prev not working properly with WPML

Posted in: Newspaper
Post count: 7

Hi,

The next prev links in the theme are not working with WPML.

We have set up English as our default language and French is our other language.

If you go here (http://104.130.176.183/the-renaissance-of-childrens-live-action-programming/) and scroll down to the next prev link area you can see the following issues.

1) The next/prev titles are showing in French when in English. If you toggle the language to French in the top left they are reversed the other way.

2) The next link always wants to just link me to the post I am already on rather than taking me to the actual next post.

3) Even though the titles are showing in the wrong language the URLs are actually to the correct language.

On the WPML forms I found this link (https://wpml.org/forums/topic/get_next_post-get_previous_post-returns-posts-not-from-current-language/#post-472084) that says “we are filtering the previous_post_link() and the next_post_link() functions only, for now.” When I took a look at your code in “td_module_single_base.php” I saw that you are not using previous_post_link() and the next_post_link(), but instead get_next_post() and get_previous_post().

Can you please tell me why this is happening and how to solve it, as this theme says it is compatible with WPML.

Thanks,
Digital Chaos

Post count: 23312

Hello Digital chaos,

Please send us an email at contact@tagdiv.com with your log-in information (wp-admin) so we can take a closer look at it. I have made some tests on my end and it seems to work as expected. Also, please provide a full FTP access and CPanel for more further deeper investigations. Provide there the link to this topic so we can quickly identify you.

Thanks for your understanding!

Post count: 7

Email sent, thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.