Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 -
- - - - - - -

Supporter timezone: Pacific/Easter (GMT-06:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Ilyes 1 year, 2 months ago.

Assisted by: Ilyes.

Author Posts
June 4, 2024 at 6:48 pm

mustafaK-15

Background of the issue:
I am trying to manage archive posts on my site hidden link.

Symptoms:
Archive posts appear random.
https://wpml.org/forums/topic/archive-posts-appear-randomly/
Questions:
Why do archive posts appear random?
How can I fix the issue with random archive posts?

June 4, 2024 at 7:57 pm
June 5, 2024 at 4:24 pm #15708165

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

When running your site locally, the issue is not occurring, please check this : hidden link

Any specific caching software installed under your site? I haven't disabled any plugin and the issue doesn't exist locally, so it is related to your current live environment rather than WPML.

Also, I don't think it is CDN related as the staging test site you shared doesn't seem to be connected to one.

June 11, 2024 at 10:08 am #15725739

mustafaK-15

Yes my local works good too. There is no cache plugin and CDN on the stagging site. What can we do?

June 11, 2024 at 7:47 pm #15728850

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

I have shared a copy of your site with our 2nd tier as they might be able to find the cause if this unique issue,

I will get back to you once I get updates,

June 13, 2024 at 1:48 pm #15736621

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello,

As we found before, this issue does not occur if you sort the query by title, which means the results get mixed up, once they get ordered by date. (by default, WordPress order them by date)

It looks like, in this example, all products have the same publishing date and this is why the sorting gets messed up:

Feb 17, 2023 at 11:23

I would say this is expected in this case and can be solved by adjusting the publishing dates, which means giving a unique publishing date to each product. w have now adjusted the date for the first 6 results on the page and now the results are not getting messed up:

hidden link

Besides, this is a corner case, as usually a user would not refresh the page at this step and keep switching through the pagination.

Let me know if this approach helps,

Let me know if any further assistance is needed,

Best,

The topic ‘[Closed] Archive posts appears random’ is closed to new replies.