WordPress taxonomies echo output
-
I am building a site that will feature sellers, kind of like a deal of the day site, on the product page there will be something that will say this:
“Sold by: (Output Custom Taxonomy for company here)” Every product will have a different brand or company name, but I am just trying to output that taxonomy. Currently I am doing it with the “tags” in wordpress like this:
This works for tags: —->
<span class="soldBy">Sold By: <?php echo $product->get_tags(); ?> </span>
I then tried this: to get the taxonomy rather then the tags, and it isn’t working.
<?php echo $taxonomy->name ?>
- The topic ‘WordPress taxonomies echo output’ is closed to new replies.