Created
October 27, 2012 00:30
-
-
Save bryceadams/3962418 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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