Title: How to save dynamic values?
Last modified: August 21, 2016

---

# How to save dynamic values?

 *  [Sub_Zero](https://wordpress.org/support/users/sub_zero/)
 * (@sub_zero)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/how-to-save-dynamic-values/)
 * Hi,
 * Assuming I have a plugin which allows the user to save 3 text values. After saving
   he will get a shortcode which echos all these 3 values.
    It is easy to save these
   values in the database, cause I can name them however I want. But what if the
   user wants to create another shortcode with 3 other values? If the new values
   get the same name they probably get overwritten. So how do I identify the values
   of new categories dynamically? And how do I create the new shortcode which includes
   the right values?
 * I guess I have to use an array. But I don’t really know how to practice my example
   above.

The topic ‘How to save dynamic values?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Sub_Zero](https://wordpress.org/support/users/sub_zero/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/how-to-save-dynamic-values/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
