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)
Viewing 1 replies (of 1 total)
The topic ‘Multiple attribute values for shortcodes’ is closed to new replies.