Created
November 15, 2017 20:46
-
-
Save bodiequirk/814919b7d2539c8eab0ec04c2c74b239 to your computer and use it in GitHub Desktop.
Sermon Manager Shortcodes for Beaver Themer
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
// Allows the audio player to be added on single sermons via the [themer_sermon_audio] shortcode | |
add_shortcode('themer_sermon_audio', function( $atts, $content = null ){ | |
return wpfc_render_audio( get_wpfc_sermon_meta( 'sermon_audio' ) ); | |
}); | |
// Allows the audio player to be added on single sermons via the [themer_sermon_slides] shortcode | |
add_shortcode('themer_sermon_slides', function( $atts, $content = null ){ | |
return get_wpfc_sermon_meta( 'sermon_video' ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on your code, I figured out how to embed a video if it is a youtube link.