Bible Shortcode
A slightly different version of the shortcode
// Add Shortcode function bible_shortcode( $atts ) { // Attributes extract( shortcode_atts( array( 'version' => 'NIV', 'title' => 'Link to Bible Gateway', 'target' => '_blank', ), $atts ) ); // Code $rbc_link = '<a '; $rbc_link .= ' target="'.$target.'"'; $rbc_link .= ' title="'.$title.'"'; $rbc_link .= 'href="https://www.biblegateway.com/passage/?search='; $rbc_link .= do_shortcode( $content ); $rbc_link .= '&version='.$version; $rbc_link .= '>'.do_shortcode( $content ).'</a>'; return ( $rbc_link ); } add_shortcode( 'bible', 'bible_shortcode' );