Button Shortcode
Button shortcode with URL parameter
// Add Shortcode function button_shortcode( $atts , $content = null ) { // Attributes $atts = shortcode_atts( array( 'link' => 'url here', ), $atts, 'button' ); return '<a href="'.$atts["link"].'" target="_blank"><button class="button">'.$content.'</button></a>'; } add_shortcode( 'button', 'button_shortcode' );