I am so new in WordPress plugin development. I have a plugin options page that contains one text field and one button. So when a url is given to the text field and stored with the button, using a shortcode that url appears where the shortcode is located. It is working so far. But what if I want to save multiple urls and produce multiple shortcodes ?!
I can produce an interface that has something like a [new URL] button that when clicked a new form generates with a unique value for the shortcode. But how can I add it to the database, instead of replacing it with the previous one.
Basically in this question, I am expecting some clue to understand how to approach to this case. There are many gallery plugins that work the same way. Can someone please explain the idea how to implement it?
Thanks in advance.