create template to show product by attributes
-
Hi everyone I create one attribute call country with two terms. I add this attribute to my products with this term.
I obtain me term like this
echo '<ul>'; $terms = get_terms( 'pa_country', 'hide_empty=0' ); foreach ($terms as $term) : $term_link = get_term_link( $term->slug, 'pa_country' ); echo '<li><a href="'.$term_link.'" title="'.$term->name.'">'.$term->name.'</a></li>'; endforeach; echo '</ul>';
But when I click in my the link don’t show a template (reload home page), my link is like this
/?taxonomy=pa_country&term=usa
so inside the woocommerce plugin in my template I create a template
taxonomy-country.php I try to taxonomy-pa_country.php
but don’t work!any idea??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘create template to show product by attributes’ is closed to new replies.