post_type === acadlix()->cpt()->course()->get_post_type()) { $aelms_course = acadlix()->model()->course()->ofCourse()->find($post->ID); $aelms_categories = get_the_terms($post->ID, acadlix()->cpt()->course()->get_course_category_taxonomy()); $aelms_category_data = []; if (!empty($aelms_categories) && !is_wp_error($aelms_categories)) { $aelms_category_data = array_map(function ($tag) { return [ 'name' => $tag->name, 'link' => get_tag_link($tag->term_id) ]; }, $aelms_categories); } if ($aelms_course) { $aelms_title = $settings['course_categories_title'] ?? ''; $aelms_display_title = $settings['course_categories_display_check']; $aelms_target = $settings['course_categories_link'] === 'new_window' ? 'target="_blank"' : ''; ?>
0) { foreach ($aelms_category_data as $aelms_key => $aelms_category) { ?> >