How to get/check course taxonomy terms in templates?

Home Forums Legacy Support Support queries How-to & Troubleshooting How to get/check course taxonomy terms in templates?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #151318
    morgan
    Spectator
    Hello, Great work for this theme! I am currently customizing the theme to adapt it to my client's processes, and I need to display either the course events, either the curriculum depending on the course category (taxonomy 'course-cat' has 2 values: online and offline) Is there a way like the wp_get_post_terms() function to get my course cat in the single course template? Have a good day!
    #151323
    morgan
    Spectator
    My bad. I found out, $post = get_post(); $post_id = $post->ID; $terms = wp_get_post_terms( $post_id, 'course-cat' ); works like a charm for courses as well! Resolved :-)
    #151328
    Diana
    Participant
    @morgan, Really appreciate your effort. Thanks for confirming that your issue is resolved. Closing this topic now.
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to get/check course taxonomy terms in templates?’ is closed to new replies.