To display products in WordPress, we can use shortcodes to save a LOT of work.

This explains the use of the products shortcode.

In WooCommerce, modifiers are called attributes (or parameters). While there are many individual shortcodes, the unified (products) shortcode ( enclosed in square brackets [the shortcode] ) handles almost all product queries and relies on these modifiers to customize exactly what items appear and how they are structured.

The core modifiers for WooCommerce product shortcodes are categorized below by layout, content, sorting, and advanced conditional operators.

I’ve also indluded some examples that you can copy, paste and modify.