Skip to content

Instantly share code, notes, and snippets.

@bryceadams
Created October 27, 2012 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryceadams/3962418 to your computer and use it in GitHub Desktop.
Save bryceadams/3962418 to your computer and use it in GitHub Desktop.
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