Assign Rather Than Create New Media (and Post) Translation Relationships
-
Dear Chouby
First of all, thank you for creating and maintaining your Polylang plugin, I love how easy it is to work with and that you thought of providing the
'raw' => 1
option for adding a custom switcher, it’s great.I am currently working on making my dad’s embroidery site multilingual and responsive but my question relates to the admin area so please let me know whether you would like more details about its setup.
If I upload a media file, I have the option to click a ‘+’ to add new translation – this action creates a new attachment entry with the same image source. I, however, do not want the same source so rather than creating a new attachment I want to link to an existing attachment that has already been uploaded.
Screenshot here (my test images have same visuals but different image names).
I’ve managed to link two attachments by changing ID’s in
wp_term_relationships
andwp_term_taxonomy
tables, however that is not something one can do for many entries.So my question is whether there is a straightforward way I can change the ‘Add new translation’ action to a ‘Link existing translation’ please?
Many thanks in advance,
Katrina
- The topic ‘Assign Rather Than Create New Media (and Post) Translation Relationships’ is closed to new replies.