' . esc_html( $category->name ) . '

'; } } $course_type = \Academy\Helper::get_course_type( $course_id ); $is_paid = \Academy\Helper::is_course_purchasable( $course_id ); $reviews_status = Academy\Helper::get_settings( 'is_enabled_course_review', true ); $price = ''; // Check if WooCommerce is active and the course is purchasable if ( \Academy\Helper::is_active_woocommerce() && $is_paid ) { $product_id = \Academy\Helper::get_course_product_id( $course_id ); if ( $product_id ) { $product = wc_get_product( $product_id ); if ( $product ) { $price = $product->get_price_html(); } } } // No WooCommerce/EDD product price found (StoreEngine, or no engine // configured at all) — fall back to the plain `academy_course_price` // meta the course builder writes directly in that case, so a paid // course still shows an actual amount instead of just "Paid". if ( $is_paid && empty( $price ) ) { $price = \Academy\Helper::get_plain_course_price_html( $course_id ); } // Get course rating $rating = \Academy\Helper::get_course_rating( $course_id ); ?> post_type ) : ?>
rating_avg ) ); echo esc_html( $rating->rating_avg ); ?> rating_count . ')' ); ?>
$price, 'is_paid' => $is_paid, 'course_type' => $course_type, ), $course_id ) ); ?>

post_excerpt ); if ( mb_strlen( $excerpt ) > $limit ) { $excerpt = rtrim( mb_substr( $excerpt, 0, $limit ) ) . '...'; } echo esc_html( $excerpt ); ?>