Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function product_terms_by_cat() {
- $terms = get_terms (
- array (
- 'taxonomy' => 'product_tag',
- 'hide_empty' => false)
- );
- foreach ( $terms as $term ) {
- echo $term->name;
- }
- }
- add_shortcode('product_terms_by_cat', 'product_terms_by_cat');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement