Create a gist now

Instantly share code, notes, and snippets.

function wptuts_slider_shortcode( $atts, $content = null ) {
extract( shortcode_atts( array(
'id' => ''
), $atts ) );
ob_start();
wptuts_slider_template( $id );
$output = ob_get_clean();
return $output;
}
add_shortcode( 'slider', 'wptuts_slider_shortcode' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment