Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 3 replies, has 2 voices.

Last updated by Mohamed Sayed 3 years, 2 months ago.

Assisted by: Mohamed Sayed.

Author Posts
February 19, 2022 at 11:52 am #10617031

John Georgantzakos

I am trying to:
The 'Load More' button on the bottom of the category page after 10 posts is not working for my second language (English). I am using the Newspaper Theme by TagDIV.
I've spent some time on this trying to fix this initially using a common category template for both languages but then I created an individual English category template to have more control over the amount of posts displayed but no luck.
I'm now pretty confident it's a bug.
It should be noted that I am attempting to display Chinese Posts on an English page which is only working for the first page/load.
For this work I had to:
Go to Settings > Under 'Post Types Translation' > set 'Posts (post)' to "Translatable
use translation if available or fallback to default language"

Link to a page where the issue can be seen:
WORKING HERE: hidden link
NOT WORKING HERE: hidden link

I expected to see:
I expect the 'Load More' button to work

Instead, I got:
The 'Load More' button is not working

February 21, 2022 at 11:45 am #10626353

Mohamed Sayed

Hi John,
Thanks for contacting WPML support.

1) Could you please tell me if some of those posts are translated into English or do you use the "Fallback to default language" option for all posts?

I'm asking this question because the translation option "Translatable
use translation if available or fallback to default language"
does not create posts in the second language. Instead, it displays the default language content which cannot be associated with translated taxonomies. This means that the translated category won't display any posts from the default language because they don't exist and this is the expected behavior.

2) Could you please whitelist my IP so I can check the site?
IP: 156.196.238.223

3) In case the posts are already translated and you can't see them with the "Load more" option, kindly check again in a minimal environment by following these steps:

- Update WPML to the latest version (4.5.4).
- Switch to the parent theme and make sure it's updated.
- Disable all the other plugins.
- If the issue is gone, enable your plugins one by one to find out which of them is causing the issue.

❌ Please backup your database and website before testing the above ❌

Regards,
Mohamed

February 25, 2022 at 9:11 pm #10666897

John Georgantzakos

Hi Mohamed,

When I selected to use Pagination:'Normal Numbered' pages on the bottom of my English category template it worked and I was able to see all the Chinese posts!!!
The problem appears when I use the Ajax 'Load more' or 'Next Prev Ajax' buttons for pagination.
I have enabled this AJAX related option but didn't fix the problem.
https://wpml.org/documentation/getting-started-guide/language-setup/enabling-language-cookie-to-support-ajax-filtering/

1) No articles are translated into English. They are all in traditional Chinese (the default language). The behaviour is to show posts in the language selected but fallback to posts in the default language if it isn't translated. I'm sure its an option I selected somewhere.

2) Done. I have added Egypt to the Cloudflare firewall whitelist.

3) The posts are not already translated. All posts in Chinese traditional.

BTW I cannot for the life of me find out how to change the 'Original Language' of a category I have translated. Any idea how to do this?

Kind regards,
John

2022-02-25_23-08-15.png
2022-02-25_22-42-13.png
2022-02-25_22-28-12.png
2022-02-25_22-19-08.png
2022-02-25_22-17-05.png
February 27, 2022 at 3:03 pm #10672831

Mohamed Sayed

Hi John,

1) Please create a full backup then try the following:

- Delete the translated category (In English)
- Set the categories to "Translatable
use translation if available or fallback to default language" in WPML > Settings > Taxonomies Translation
- Check if the issue persists

2) About changing the language of categories, you can do that from Posts > Categories > Edit the category, then use the dropdown in the language section. Please note that if you have translated the category to a specific language, you won't be able to change the category language to the one with translation.

3) Could you please tell me if you tested the issue in a minimal environment as I suggested in my previous reply?

Change the language of category.png