public
Created

  • Download Gist
gistfile1.php
PHP
1 2 3 4 5 6 7 8 9 10 11
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' );

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.