Title: Multiple attribute values for shortcodes
Last modified: August 20, 2016

---

# Multiple attribute values for shortcodes

 *  [jamajamajaaama](https://wordpress.org/support/users/tipone/)
 * (@tipone)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/multiple-attribute-values-for-shortcodes/)
 * How to create a shortcode with multiple attribute values? f.e
 *     ```
       [contact type="phone"]74847848[/contact]
        and
       [contact type="fax"]5565656565[/contact]
       ```
   
 *  `function sc_kontakti($atts, $content = null) {
 * what to write there?
 * return ‘<div class=”sckon ‘.$type.'”>’.$content.'</div>’;
    } add_shortcode(“kontakti”,“
   sc_kontakti”);`

Viewing 1 replies (of 1 total)

 *  Thread Starter [jamajamajaaama](https://wordpress.org/support/users/tipone/)
 * (@tipone)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/multiple-attribute-values-for-shortcodes/#post-2416798)
 * Bump

Viewing 1 replies (of 1 total)

The topic ‘Multiple attribute values for shortcodes’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [jamajamajaaama](https://wordpress.org/support/users/tipone/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/multiple-attribute-values-for-shortcodes/#post-2416798)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
