Skip Navigation

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

Problem:
The category displays twice on the post page.
Solution:
Run the troubleshooting buttons in WPML > Support > Troubleshooting.
Relevant Documentation:
https://wpml.org/documentation/support/wpml-troubleshooting-options/

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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by henrikR-17 1 year, 10 months ago.

Assisted by: Long Nguyen.

Author Posts
March 6, 2023 at 6:18 pm #13182393

henrikR-17

I am trying to:

Create new Post and assign it to categories...
When I was writing the post, I noticed that WP / WPML thought I was writing in Spanish. I was writing in Danish, so I changed "Language of this post" to Danish.
Either before or after I assigned it to 2 categories.

But know each category is mentioned twice on the post, both when displaying the final result, and when looking at a list in WP dashboard -> Posts.
When I look at the final result, the category name is mentioned twice in Danish.
When I look at the list in WP dashboard -> Posts the category name is shown in Danish AND Spanish...

Link to a page where the issue can be seen:

hidden link

I expected to see:

Each category mentioned ONCE.

Instead, I got:

Each category is mentioned TWICE...

I have uploaded 2 screen shots.

WP dashboard each category mentioned twice 2023-03-06.png
WP post each category mentioned twice  2023-03-06.png
March 7, 2023 at 8:51 am #13186451

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi there,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

Please go to WPML > Support > Troubleshooting > Click on some buttons below and check if the issue is resolved.
- [Posts] Synchronize posts taxonomies
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Fix WPML tables collation
- Fix terms count
- Fix post type assignment for translations

If it does not help, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: 
https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.

Look forward to your reply.
Thanks

March 7, 2023 at 3:00 pm #13190817

henrikR-17

The issue is resolved. Thank you.
The last button gave this result:
"Post type and source language assignment have been fixed for 1 elements"
How big is the risk that the procedure has created other problems...? 😉
Is it important that the buttons are used in the order they appear on the WPML -> Troubleshooting page?

March 8, 2023 at 3:03 am #13194623

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

Glad to hear it works on your site. In some cases, the translations are not working as they should due to data corruption or being affected by another plugin, we need to run the troubleshooting button to correct them.
You can run the buttons from the top to the bottom, in some cases, we only need to click one or two buttons depending on what the issue is. Please read more on the documentation https://wpml.org/documentation/support/wpml-troubleshooting-options/

I hope I was helpful. Don't hesitate to ask if you find any problem along the way, I'll gladly help you.