Button Shortcode
// Add Shortcode
function button_shortcode( $atts , $content = null ) {
// Attributes
extract( shortcode_atts(
array(
'link' => '#',
'color' => '',
'title' => 'Default title',
), $atts )
);
// Code
$style = ($color) ? ''.$color.' button' : '';
$output ='<a href="'.$link.'" title="'.$title.'" class="'.$style.'">' .do_shortcode($content). '</a>';
return $output;
}
add_shortcode( 'button', 'button_shortcode' );