Title: Getting all values from shortcode attributes
Last modified: April 9, 2020

---

# Getting all values from shortcode attributes

 *  [Argjend Haxhiu](https://wordpress.org/support/users/haxhiuargjend/)
 * (@haxhiuargjend)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/getting-all-values-from-shortcode-attributes/)
 * I manage to get the default value for the checkbox but is it possible to get 
   all the values from the shortcode.
    It would be helpful to have them with pipes
   since I need to pass an ID and label to it.
 * If I’m not clear. I am trying to build the checkbox on this form:
 *     ```
       [select your-recipient "CEO|ceo@example.com"
                           "Sales|sales@example.com"
                           "Support|support@example.com"]
       ```
   
 * but those three values to pass with a shortcode.

The topic ‘Getting all values from shortcode attributes’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [pipe](https://wordpress.org/support/topic-tag/pipe/)
 * [select](https://wordpress.org/support/topic-tag/select/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 0 replies
 * 1 participant
 * Last reply from: [Argjend Haxhiu](https://wordpress.org/support/users/haxhiuargjend/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/getting-all-values-from-shortcode-attributes/)
 * Status: not resolved