Bootstrap Button Shortcode
A shortcode that creates Bootstrap buttons
// Add Shortcode function btn_shortcode( $atts , $content = null ) { // Attributes extract( shortcode_atts( array( 'href' => '#', 'target' => '_self', 'class' => 'btn', ), $atts ) ); // Code ?> <a class="<?php echo($class); ?>" href="<?php echo($href); ?>" target="<?php echo($target); ?>"><?php echo($content); ?></a> <?php } add_shortcode( 'btn', 'btn_shortcode' );