I created a Wordpress plugin, which allows the admin to add information through a form, and it is saved in the database. I'm trying to link each photo that I upload in the Media library with a form.
In other words, my objective is that I want to put my own caption in each image of the Media library, and this caption is taken through a form.
So I have the data from the form fields in a table in my db and another table with the media pictures. How can I link them between each other?
Does anyone have an idea about what can I do?