Where does get_the_term_list go in twentytwelve
-
I’ve been taking a wordpress lynda.com course by Morten Rand-Hendriksen (who may be on these forums?) and in a chapter on developing custom templates for a mock food blog, where the student develops a custom post template that lists taxonomies, he suddenly goes from showing how to list custom taxonomies in twentytwelve to showing how its done in twentyeleven. The problem is that he never returns the student to the original twentytwelve theme – showing how this would be done in twentytwelve. So, my question is where would this code (used in his course and shown beloe) go in twentytwelve? and if it wouldn’t work in twentytwelve, what code will list custom taxonomies in the beginning of a custom post?
<div class="entry-meta-custom"> <div>Meal type: <?php echo get_the_term_list( $post->ID, 'meal-type', '', ', ', '' ); ?></div> <div>Servings: <?php echo get_the_term_list( $post->ID, 'servings', '', ', ', '' ); ?></div> <div>Difficulty: <?php echo get_the_term_list( $post->ID, 'difficulty', '', ', ', '' ); ?></div> <div>Ingredients: <?php echo get_the_term_list( $post->ID, 'ingredients', '', ', ', '' ); ?></div> </div><!-- .entry-meta-custom -->
- The topic ‘Where does get_the_term_list go in twentytwelve’ is closed to new replies.