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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-07:00)

This topic contains 5 replies, has 2 voices.

Last updated by Bobby 1 year, 1 month ago.

Assisted by: Bobby.

Author Posts
May 13, 2024 at 11:06 pm #15622678

mustafaK-15

Hello. I created custom post type (product) and, custom taxonomy (product-category) with ACF plugin.

I created taxonomy-product-category.php to loop product posts. And listed with default while query (check attachment).

But i have a weird problem. When i navigate page 5 or next pages, product posts appear randomly. They look as if the orderby value is rand.

Interestingly, it only happens on pages 5 and up.

Check page 4. Its all good. hidden link

But check page 5, hidden link
Posts appear randomly.

I deactivated all plugins (except wpml plugins) and tried with default theme. Same results.

If i deactivate wpml plugins also, all posts (including translated posts) are appearing in normal order.

Screenshot 2024-05-14 at 01.58.51.png
May 14, 2024 at 8:42 pm #15627066

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

I have browsed between pages 4 and 5, to verify, when I am on page 5 I can see that now I am starting to see some posts that are not titled as "classic", is this the issue?

Monesa Gold Leaf Bedroom for example.

if you review this product as an example in the backend does it happen to be categorized as 'classic bedroom' ?

May 16, 2024 at 12:03 pm #15634877

mustafaK-15

Hello, thank you for yor reply. It is not about titles. Also there is no problem on categories.

Check the results of page 5, you will see different products every page refresh.

Check this please: hidden link

May 16, 2024 at 10:30 pm #15637229

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the screencast I can see the issue now!

I created a sandbox environment to attempt to reproduce the behavior but could not do so.

How are you adding the pagination to the blog? Is this done using custom code?

Sandbox with default WP pagination
hidden link

Login: hidden link

May 17, 2024 at 8:14 am #15637934

mustafaK-15

No it is default WordPress pagination with default query. Check the attachment.

I disabled infinity scroll to see pagination. You can see now.

Btw, your sandbox site doesn't have any problem. I am trying to find what is the problem on my side.

Screenshot 2024-05-17 at 11.13.02.png
May 17, 2024 at 4:22 pm #15640499

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you, the goal of the sandbox is to try and reproduce the behavior in a clean environment.

If WPML has a bug in its code then it is fairly easy to reproduce in a clean environment.

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

The topic ‘[Closed] Archive posts appear randomly’ is closed to new replies.