Shortcode

//Shortcode [myshortcode id=##### width=### height=### auto=true]
function show_myshortcode($atts){
extract(shortcode_atts(array(
'id' => 'Not Set',
'width' => '200',
'height' => '200',
'auto' => 'false',
), $atts));

return "This is the Shortcode Content: {$id} {$width} {$height} {$auto}";
}

add_shortcode('myshortcode', 'show_myshortcode');

1 Comment

You must be logged in to post a comment.


  1. How To Use, Style and Implement WordPress Shortcodes...

    I found your entry interesting thus I've added a Trackback to it on my weblog :)...