Skip to main content

Preset Shortcodes

Pro Feature

Preset Shortcodes are available in Rearrange Products for WooCommerce Pro.

You can display products using a saved preset's sort order anywhere on your site using WooCommerce shortcodes with the rwpp-order attribute.

Usage

Products Shortcode

Use the standard WooCommerce [products] shortcode with the rwpp-order attribute set to your preset name:

[products rwpp-order="Summer Sale Layout" limit="12" columns="4"]

This displays products sorted according to the "Summer Sale Layout" preset.

Product Category Shortcode

For category-specific presets, use the [product_category] shortcode:

[product_category category="clothing" rwpp-order="Clothing Featured"]

This displays products from the "clothing" category sorted by the "Clothing Featured" preset.

Parameters

The rwpp-order attribute works alongside all standard WooCommerce shortcode parameters:

ParameterDescription
rwpp-orderName of the saved preset to use for sorting
limitNumber of products to display
columnsNumber of columns in the grid
categoryProduct category slug (for [product_category])

Requirements

  • The preset name must match exactly (case-sensitive)
  • The preset must exist — if a preset is deleted, the shortcode falls back to default WooCommerce sorting
  • Settings → Sorting Scope must be set to "All Loops" for shortcodes to use custom sorting (see Settings)

Example

To create a "Featured Products" section on your homepage:

  1. Create a preset named "Homepage Featured" with your desired product order
  2. Add the following shortcode to any page or post:
[products rwpp-order="Homepage Featured" limit="8" columns="4"]