Skip to content
Create a gist now

Instantly share code, notes, and snippets.

function wptuts_slider_shortcode( $atts, $content = null ) {
extract( shortcode_atts( array(
'id' => ''
), $atts ) );
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
Something went wrong with that request. Please try again.