Grid & list shortcodes

Two shortcodes with the same attributes: one draws cards in a grid, the other rows in a list.

Free

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.

AttributeDefaultUse
limitGeneral tab: 12 (grid), 6 (list)Number of products, 1 to 100.
columnsGeneral tab: 4Grid columns on wide screens, 1 to 6. Narrow spaces use fewer (see Responsive by container). Not used by the list.
categoryEmpty (all products)Comma-separated category slugs or IDs.
cat_operatorININ (in any of the categories), AND (in all of them) or NOT IN (exclude them).
include_childrenyesyes / no: whether subcategories count.
idsEmptyComma-separated product IDs. Only these products are shown.
orderbyGeneral tab: menu_ordermenu_order, date, title, price, popularity, rating, id, rand or include. See Order.
orderGeneral tab: ASCASC or DESC.
titleEmptyA heading above the products. The product list is then labelled by it.
heading_tagh2Tag of that heading: h2–h6, p or div.
show_image, show_title, show_rating, show_price, show_add_to_cartCard Content tab: yesyes / no for each part of the card.
show_excerptCard Content tab: no (grid), yes (list)The short description.
excerpt_lengthCard Content tab: 20Words in the short description, 1 to 100.
title_tagCard Content tab: h3Tag of each product name: h2–h6, p or div.
image_sizeAppearance tab: woocommerce_thumbnailAny registered image size, or full.
image_ratioAppearance tab: autoauto (original), square, portrait (3:4), landscape (4:3) or wide (16:9).
card_styleAppearance tab: borderedbordered or plain.
gapAppearance tab: 24Pixels between products, 0 to 80.
classEmptyExtra CSS classes on the wrapper (up to 10).
empty_message"No products found."Text shown when no products match.
hide_emptynoyes outputs nothing at all when no products match.
layoutgrid 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.

If WooCommerce is inactive or too old, both shortcodes output nothing, so visitors never see raw shortcode text. An admin notice explains how to fix it.