How to modify WP database so that srcset will calculated correctly
-
Hi I have created a plugin to move media files from upload folder to sub folders according to their years and months. For this I have update the wp_post table guid column and wp_postmeta table meta_value for meta_key ‘_wp_attached_file’. Everything works fine. But when an image contain srcset attribute it leads to the old location. I tried to modify meta_value for meta_key ‘_wp_attachment_metadata’. But it seemed like after modifying it all going to crash and srcset not works for the front end at all. But image displayed without a problem. How should I fix this ? a help would be much appreciate.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to modify WP database so that srcset will calculated correctly’ is closed to new replies.