Custom field value within taxonomy-value?
-
So I have created a custom field for Woocommerces product label. It seems to be working fine within the admin, question is; How do I make it appear on the site.
My custom field is called “cf_brands_logo”.
I assume you have to add it here (category-template.php around line 668)
foreach ( $tags as $key => $tag ) { $count = $counts[ $key ]; $real_count = $real_counts[ $key ]; $tag_link = '#' != $tag->link ? esc_url( $tag->link ) : '#'; $tag_id = isset($tags[ $key ]->id) ? $tags[ $key ]->id : $key; $tag_name = $tags[ $key ]->name;$a[] = "<li class='brand-item'><a href='$tag_link'>$tag_name</a></li>";} switch ( $format ) :
As you can see, what’s being outputted is there between the li-elements. I’m shaky with php so i need a way to insert the “cf_brands_logo”-value.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom field value within taxonomy-value?’ is closed to new replies.