{"id":2416393,"date":"2011-11-25T07:32:27","date_gmt":"2011-11-25T07:32:27","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/multiple-attribute-values-for-shortcodes\/"},"modified":"2016-08-20T03:34:32","modified_gmt":"2016-08-20T03:34:32","slug":"multiple-attribute-values-for-shortcodes","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/multiple-attribute-values-for-shortcodes\/","title":{"rendered":"Multiple attribute values for shortcodes"},"content":{"rendered":"<p>How to create a shortcode with multiple attribute values? f.e<\/p>\n<pre><code>[contact type=&quot;phone&quot;]74847848[\/contact]\n and\n[contact type=&quot;fax&quot;]5565656565[\/contact]<\/code><\/pre>\n<p>  `function sc_kontakti($atts, $content = null) {<\/p>\n<p>what to write there?<\/p>\n<p>return &#8216;&lt;div class=&#8221;sckon &#8216;.$type.'&#8221;&gt;&#8217;.$content.'&lt;\/div&gt;&#8217;;<br \/>\n }<br \/>\n add_shortcode(&#8220;kontakti&#8221;, &#8220;sc_kontakti&#8221;);`<\/p>\n","protected":false},"template":"","class_list":["post-2416393","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2416393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2416393\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=2416393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}