Skip to main content

Setting Shortcode to Display Related Products

This shortcode displays related products in a responsive slider layout, based on the given parameters.

Available Parameters

  1. id (Required when used outside the product page)
    • Type: Integer
    • Description: Specifies the Product ID for which to display related products.
    • Usage Notes:
      • On single product pages, this parameter is not required, as it uses the current product ID automatically.
      • When used outside a product page (e.g., in a custom section), you must specify the product ID manually using this parameter.
  2. desktop_limit
    • Type: Integer
    • Description: Sets the number of related products to be displayed per row on desktop devices.
    • Default: Falls back to the global “Products per row” setting if not provided.
  3. tab_limit
    • Type: Integer
    • Description: Sets the number of related products to be displayed per row on tablet devices.
    • Default: Falls back to the global “Products per row” setting if not provided.
  4. mobile_limit
    • Type: Integer
    • Description: Sets the number of related products to be displayed per row on mobile devices.
    • Default: Falls back to the global “Products per row” setting if not provided.

Example Usage

[rprow_custom_related_products_display id="20" desktop_limit="4" tab_limit="3" mobile_limit="1"]

This will show related products for product ID 20 in a slider with:

  • 4 products per row on desktop,
  • 3 on tablets,
  • 1 on mobile.
Was this article helpful?

Related Articles

Leave a Reply

Need Support?

Can't find the answer you're looking for?
Contact Support

Plugin setup & customization service

We offer full setup services and can customize our plugins to your exact requirements 🛠️
Get a Quote