diff --git a/includes/template-tags.php b/includes/template-tags.php index 3e8bd76..2125ebd 100755 --- a/includes/template-tags.php +++ b/includes/template-tags.php @@ -17,6 +17,7 @@ add_action( 'sermon_audio', 'wpfc_sermon_audio', 5 ); add_action( 'sermon_single', 'wpfc_sermon_single' ); add_action( 'sermon_excerpt', 'wpfc_sermon_excerpt' ); +add_filter( 'the_content', 'add_wpfc_sermon_content' ); // Include template for displaying sermons function sermon_template_include( $template ) { @@ -438,8 +439,11 @@ function render_wpfc_sermon_excerpt() { do_action( 'sermon_excerpt' ); } -function wpfc_sermon_excerpt() { - global $post; ?> +function wpfc_sermon_excerpt( $return = false ) { + global $post; + + ob_start(); + ?>
@@ -464,16 +468,23 @@ function wpfc_sermon_excerpt() {