Grid & list shortcodes
Two shortcodes with the same attributes: one draws cards in a grid, the other rows in a list.
Product grid
[siteryn_product_grid]
Cards in a responsive grid: image on top, then name, rating, price and the add to cart button. With no attributes it shows your default number of products (12) in your default columns (4).
Product list
[siteryn_product_list]
One row per product: the image on the left (200px wide), the details beside it, with the short description switched on by default. With no attributes it shows 6 products.
[siteryn_product_list limit="3" category="midi-dresses" title="Midi dresses"]- Each row: image left, then name, rating, price, the short description and Select options
- Rendered with Pro badges turned off
All attributes
Both shortcodes accept every attribute. Leave one out and the saved setting from the settings screen is used; attribute names are not case-sensitive. Yes/no attributes also accept true, 1 and on.
| Attribute | Default | Use |
|---|---|---|
limit | General tab: 12 (grid), 6 (list) | Number of products, 1 to 100. |
columns | General tab: 4 | Grid columns on wide screens, 1 to 6. Narrow spaces use fewer (see Responsive by container). Not used by the list. |
category | Empty (all products) | Comma-separated category slugs or IDs. |
cat_operator | IN | IN (in any of the categories), AND (in all of them) or NOT IN (exclude them). |
include_children | yes | yes / no: whether subcategories count. |
ids | Empty | Comma-separated product IDs. Only these products are shown. |
orderby | General tab: menu_order | menu_order, date, title, price, popularity, rating, id, rand or include. See Order. |
order | General tab: ASC | ASC or DESC. |
title | Empty | A heading above the products. The product list is then labelled by it. |
heading_tag | h2 | Tag of that heading: h2–h6, p or div. |
show_image, show_title, show_rating, show_price, show_add_to_cart | Card Content tab: yes | yes / no for each part of the card. |
show_excerpt | Card Content tab: no (grid), yes (list) | The short description. |
excerpt_length | Card Content tab: 20 | Words in the short description, 1 to 100. |
title_tag | Card Content tab: h3 | Tag of each product name: h2–h6, p or div. |
image_size | Appearance tab: woocommerce_thumbnail | Any registered image size, or full. |
image_ratio | Appearance tab: auto | auto (original), square, portrait (3:4), landscape (4:3) or wide (16:9). |
card_style | Appearance tab: bordered | bordered or plain. |
gap | Appearance tab: 24 | Pixels between products, 0 to 80. |
class | Empty | Extra CSS classes on the wrapper (up to 10). |
empty_message | "No products found." | Text shown when no products match. |
hide_empty | no | yes outputs nothing at all when no products match. |
layout | grid or list (the tag) | Use layout="list" on the grid tag (or the other way round). Pro adds carousel, masonry, overlay and compact; unknown values fall back to the tag's layout. |
The General tab's Shortcodes card has the same list under All attributes. Pro adds more attributes: see Layout presets, Advanced filters, Load more, Badges, Quick view & swatches and Responsive.
Examples
[siteryn_product_grid category="hoodies,t-shirts" limit="8" columns="4" orderby="price" order="asc"]
[siteryn_product_grid category="accessories" cat_operator="NOT IN" orderby="date" order="DESC"]
[siteryn_product_list ids="12,45,7" orderby="include" title="Staff picks"]
[siteryn_product_grid card_style="plain" image_ratio="square" show_rating="no" hide_empty="yes"]
When nothing matches
The grid shows "No products found." (or your empty_message) in a dashed box. With hide_empty="yes" it prints nothing, not even the heading.