Description
Displays the list of attributes associated with the current product. This tag must be within The Loop.
Example
<?php tcp_attribute_list( array( 'fabric', 'colour', 'tcp_product_tag' ) ); ?>
The html result could be:
<table class="tcp_attribute_list_12"> <tbody> <tr class="tcp_odd"> <th scope="row">Fabric</th> <td>Cotton </td> </tr> <tr> <th scope="row">Color</th> <td>White </td> </tr> </tbody> </table>
The style class “tcp_attribute_list_12” is formed using the post id at the end.
Parameters
- $taxonomies
- (Array) List of taxonomies: array( taxonomy_1, taxonomy_2 ) or false to see all the taxonomies.
Change Log
Since 1.1.4