We are fetching videos with categories-based tabs. Under each category 5 posts load by default and then with the load more button with an offset of 5. It's working fine with the English language. But on my site this site we are using 2 languages French and English,
I have checked when we change the language category id will change of post type
like
Cat id with the French language selected: hidden link
Cat id with the English language selected: hidden link
So have used 'suppress_filters' => true, in my query that works fine its load the categories ids according to language selected. Now when click on the load more button it doesn't work correctly it will repeat the posts randomly like its skip 7 or 8 no posts and repeat other post in place of this index. but it load the all posts in number like one category have 13 posts it will load 13 but not correctally.
hidden link
here is the above page please have a look and let me know if you need the access of code i will provide. thanks.
I'm not using any custom plugin I have make it custom with ajax and if don't use 'suppress_filters' => true, then it will work fine on english language but not in French
and from wpml setting language filtering is enabled.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
I asked our 2nd tier about this - I am not sure if we can accommodate such functionality, this all being custom developed solution that should be handled by our https://wpml.org/contractors/ using our API, such cases are not within the scope of support. https://wpml.org/purchase/support-policy/
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Can you tell me if you changed something in the meantime?
Because yesterday when I escalated this case, it was different than today, because I can see that now it only repeats the same posts from the same language.
hidden link
Yesterday it loaded from other languages, e.g N°5 Depression.
This is a bug that is because of WPML plugin when i use 'suppress_filters' => true, to do this form multi langual then it will not works fine otherwise its working fine you can remove this parameter from query args and then test with english language. all works fine.
This answer coming from our 2nd tier support, if you're not seeing categories in another languages, it may indicate that you are missing our hook and have hardcoded it, but need to use the hook to have WPML use the translated category ID.
The topic ‘[Closed] With ajax loadmore request posts are skip randomly and repeates each other.’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.