Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Product groups/variations

Split product output into separate blocks with product groups — assign, display, and show them as tabs.

Groups are the simplest way to split product output into separate blocks — for example, a phone in one group and its accessories in another, or different colors and variations of the same product. (The other way to control exactly what a block shows is to bind specific products to it — see Choose products.)

Check the Smart Groups feature to create and assign product groups using AI.

Assign products to a group

On the Added tab of the product manager:

  • In bulk — select products, then pick a group from the dropdown, or choose + New group… to create one.

  • Per product — assign a group (or a new group) on a product's row, or in its edit drawer.

Assigning products to a group on the Added tab
Assign a group in bulk or per product on the Added tab

You can also assign a group while searching, using the syntax keyword -> group name. After the product is added, it's placed in that group automatically. This syntax also works for auto-update keywords.

Display one or more groups

To show only certain groups:

  • In the CE Products block, set the Product Groups filter in the block's Data Filtering panel — pick one or more groups. See The Products block.

  • Or use the groups shortcode parameter, with several groups separated by commas:

See Shortcode parameters.

Show groups as tabs

Special group templates render each group as its own tab automatically. Set the tab order with the groups parameter, and the tab style with tabs_type (tabs, pills, or underline).

Products displayed as group tabs
Group templates turn each group into a tab

Removing a group

To remove a group, simply unassign it from all products — once no product uses it, the group is deleted automatically.

Static groups

If you want certain groups to be available for all posts by default, use the cegg_static_product_groups filter.

Add the following to your theme's functions.php (preferably in a child theme):

Last updated