Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing an issue with the display of posts of a custom post type (CPT) named 'Kolekcje' across different languages in the archive. Despite setting the CPT to 'translatable' as per the documentation, the posts were not displaying correctly.
Solution:
We reviewed the client's website and found that the issue seemed to be resolved, with all English Collections having the 'published' status and no duplicates in the archive pages. We asked the client if they had used the

'suppress_filters' => false

function in their code, as it could be related to the issue. We requested the current status of the project to provide further assistance.
If this solution doesn't look relevant to your situation, please open a new support ticket with us.

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 18 replies, has 2 voices.

Last updated by Lucas Vidal de Andrade 12 months ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
November 23, 2023 at 2:02 pm #14908801

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,
I'm still investigating the issue, I'll come back to you as soon as I have new information 🙂 Today I'll be able to give you an answer, thank you for understanding.

November 23, 2023 at 6:41 pm #14911225

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

I'm still looking into your issue. I think it might be an URL configuration problem, so I'll get a second opinion from my colleagues. I'm sorry it's taking longer than expected, but we are doing our best to solve your issue as soon as possible. Meanwhile, have a nice day.

November 24, 2023 at 10:58 am #14916105

lukaszS-14

I noticed that the problem is in this querry, which displays posts from the post type "kolekcje".

I'm using the get_post($args) function, where I retrieve the posts so I can filter them alphabetically. If I display the posts from the standard querry
'@while(have_posts())' then it doesn't duplicate the "kolekcje".

Is there something I need to add or change in the get_post($args) function so that the problem doesn't occur?

November 24, 2023 at 3:12 pm #14918821

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

after reviewing your website today, I saw that the problem seems not to be there anymore. All the English Collections have the published status and the posts are not duplicate on the archive pages. Have you used the suppress_filters' => false function anywhere in your code? I noticed that your might be related to that. Please tell me what's the current status of your project so I can further assist you.

Best regards,
Lucas Vidal

Screenshot 2023-11-24 at 12.10.56.png