Skip to content

Shortcodes

LoyaltyX adds a Points and Rewards area to My Account on its own. The shortcodes let you place the same rewards content on any other page, post or widget area.

Go to DevDiggers Plugins → LoyaltyX → Configuration, then open Shortcodes in the left menu.

The LoyaltyX Shortcodes settings showing the two shortcode tags

  • Points Dashboard renders the full rewards layout: the customer’s points summary, ways to earn, redemption options, and the points log table. The default tag is [ddwcpr_points_dashboard].
  • Available Points Value renders the total value of the customer’s current balance. The default tag is [ddwcpr_available_points_value].

Add the tag to any page or post where you want the content to appear. For example, create a page called My Rewards and paste [ddwcpr_points_dashboard] into it. Logged-in customers then see their dashboard on that page.

The dashboard shortcode is a good pairing with the General tab. Turn off the My Account menu there and build a custom rewards page with this shortcode instead.

Each field holds the tag itself, so you can change it. If another plugin already uses ddwcpr_points_dashboard, set a different tag here and use that one on your pages instead. Click Save Changes after editing a tag.