Skip Navigation

Tagged: 

This topic contains 0 replies, has 1 voice.

Last updated by alanC-15 5 months, 4 weeks ago.

Assisted by: Bigul.

Author Posts
March 27, 2024 at 4:46 pm #15457331

alanC-15

I have a site with a large number (80k) of posts which each have a featured image. The site is translated into three languages and I want to use the same featured image in each language. I may need to translate the image text (caption, alt, etc.).

I've noticed that for each translation of the post, two rows are added to the database:
1. A Post of type Attachment is added to the Posts table
2. A row with the meta_key _wp_attached_filed is added to the Postmeta table

This is a problem because it makes the database very bloated and searching slow. Is there a way within WPML's settings that I can have the translated posts use the default language featured image so that I can remove the extra rows from the database? Or will I need to add some code to my site to do this?

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.