Loop Products from Category
-
Hi,
I’ve been trying to add a loop of woocommerce products within a certain product category but I can’t seem to get it to work. I’ve tried many different things like adding product-category=/product-categories= instead of category=… It just shows a blank page, or it shows the loop but without filtering the category i want.
Could you please tell me what i’m doing wrong? Thank you so much.
This is the code:
[loop type=product category=my-albums order=DESC count=100 orderby=[acf field=”last_updated” image=image_link]
<table width=”auto”>
<tbody>
<tr>
<td width=”15%”>[field image width=”200px” height=”auto”]</td>
<td width=”50%”>[link][field title][/link]</td>
<td width=”33%”>Last updated: [acf field=”last_updated”]
</td>
</tr>
</tbody>
</table>
[/loop]
The topic ‘Loop Products from Category’ is closed to new replies.