From c2cd7bb9d0403e3bd08dba7997cade8fdf60776e Mon Sep 17 00:00:00 2001 From: Jose Striediner Date: Sun, 17 Mar 2024 19:16:37 -0700 Subject: [PATCH] fixing single course page --- functions.php | 2 +- single-sfwd-courses.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index f00cd59..1e0e075 100644 --- a/functions.php +++ b/functions.php @@ -217,7 +217,7 @@ function meks_which_template_is_loaded() { } -//add_action( 'wp_footer', 'meks_which_template_is_loaded' ); +// add_action( 'wp_footer', 'meks_which_template_is_loaded' ); // Write to error log diff --git a/single-sfwd-courses.php b/single-sfwd-courses.php index 143a395..5af2157 100644 --- a/single-sfwd-courses.php +++ b/single-sfwd-courses.php @@ -19,7 +19,8 @@ if ( 'draft' == get_post_status() ) { do_action( THEME_HOOK_PREFIX . '_single_template_part_content', get_post_type() ); } else { - the_content(); + get_template_part( 'template-parts/content', 'sfwd' ); + // the_content(); } endwhile; // End of the loop.