I’m creating a template for archive-product.php page in WooCommerce.
I would like to have 3 boxes and link each to a different product category.
How do I get dynamic link to each product category in <a>
tag?
For now I put static links, but I’m sure there is a way to make them dynamic in WordPress
Here’s what my code looks like:
<ul class="shop-items">
<li class="fine-art">
<a href="http://url.com/product-category/categories/fine-art/">
<div>Fine Art
<span>Description</span>
</div>
</a>
</li>
<li class="dance-art">
<a href="http://url.com/product-category/categories/dance-art/">
<div>Dance Art
<span>Description</span>
</div>
</a>
</li>
<li class="history-art">
<a href="http://url.com/product-category/categories/history-art/">
<div>History Art
<span>Description</span>
</div>
</a>
</li>
</ul>