Title: Shortcode atts array()
Last modified: August 22, 2016

---

# Shortcode atts array()

 *  [David Perroud](https://wordpress.org/support/users/davidperroud/)
 * (@davidperroud)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/shortcode-atts-array/)
 * Dear, i try to create a shortcode, and i don’t find how to get an array this 
   way :
 * [shortcode id=1,2,3,4,5]
 * to return something like this (with a foreach??):
 * <img src=”$1″/> <img src=”$2″/> <img src=”$3″/> etc etc
 * Thank you very much if you can help me !

The topic ‘Shortcode atts array()’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [David Perroud](https://wordpress.org/support/users/davidperroud/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/shortcode-atts-array/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
