Skip to content

Instantly share code, notes, and snippets.

@neroze
Created February 18, 2017 17:01
Show Gist options
  • Save neroze/3e887d5c39ce614a0766ee1a31dfa0a5 to your computer and use it in GitHub Desktop.
Save neroze/3e887d5c39ce614a0766ee1a31dfa0a5 to your computer and use it in GitHub Desktop.
function team_wrapper_block_function( $atts, $content ) {
extract( shortcode_atts( array(
'el_class' => ''
), $atts ) );
ob_start();
echo '<section class="team-wrapper">
<div class="team-thumbnail">
<div class="container">
<div class="row-fluid">'.do_shortcode($content).'</div>
</div>
</div>
</section>';
$content = ob_get_contents();
ob_get_clean();
return $content;
}
add_shortcode( 'team_wrapper', 'team_wrapper_block_function' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment