assigning class to custom taxonomy for css editing
-
I have many custom taxonomies on a child theme at amyatwoodtestsite.com.
I’m trying to assign a class to ONE of the custom taxonomies (“wines”), so that I can edit the taxonomy archive in css.Here’s the code, but it’s not working:
<div class="wines"> <?php if (get_the_term_list( $post->ID, 'wines' ) != null ) { ?> <div>Wines: <?php echo get_the_term_list( $post->ID, 'wines', '', ', ', '' ); ?></div> <?php } ?> </div>
I could use help.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘assigning class to custom taxonomy for css editing’ is closed to new replies.