Shortcodes are a powerful way to display your loyalty information anywhere on your site, beyond My Account pages. Without shortcodes in strategic locations, customers miss chances to earn, forget about their points altogether, and ultimately let rewards go unused.
Our WooCommerce points plugin provides you with two shortcodes that are exceptionally powerful and display points balances, full customer dashboards, and various loyalty information throughout your WooCommerce store.
This guide will show you each of the shortcodes, how to customize those shortcodes, where to put them, and best practices for building customer engagement.
What Are Shortcodes? #
Shortcodes provide you with simple text codes that you insert in pages, posts, widgets, or theme templates. WordPress will recognize your shortcode and automatically transform it into a dynamic and functional area.
Example:
You type: [ddwcpr_points_dashboard]
Customers see: Full interactive loyalty dashboard with points, rewards, and activity history
You do not have to know any code – just copy, paste and publish.
LoyaltyX Shortcodes Available #
LoyaltyX has 2 primary shortcodes configured in Configuration > Shortcodes:
1. Points Dashboard Shortcode #
Shortcode: [ddwcpr_points_dashboard]
What it shows: Full Points and Rewards dashboard including:
- 6 statistics cards (Total Earned Points, Active Points, Redeemed Points, Expired Points, Converted Coupons, Total Referrals).
- 6 navigation tabs (Logs, Expiring Points, My Level, Earn, Redeem, Rewards).
- Full activity history table of points earned/redeemed.
- Expiry tracking table for points with status indicators.
- Display for your customer level/tier of loyalty with a badge.
- Earning opportunity grid with available earning actions.
- Redemption options grid with reward cards.
- Generated the coupon codes table for status.
Example output: Full interactive dashboard which looks exactly like yoursite.com/my-account/points-and-rewards/
If used for:
- A “My Rewards” or “Loyalty Program” page
- Landing page just for your loyalty members
- VIP member section of your website
- Section on the homepage for logged-in users
- Membership benefits page.
Why: Creates a rewards page separate from My Account for enhanced discovery and branding with links to promotions.
Best practice:
- Create a page, My Rewards or Loyalty Program.
- Insert
[ddwcpr_points_dashboard]shortcode. - Link the page in your main menu navigation.
- Send out in email campaigns to promote it.
- Use as a landing page for loyalty promotion.
2. Shortcode for Value of Available Points #
Shortcode: [ddwcpr_available_points_value]
Display: Total value of credits the user has available to use.
Default Display: Default display shows the total value of credits the user has available to use.
Example of Output: Shows the total value of points in a currency format based on your redemption rate settings.
Use cases:
- In the header/navigation area (shows the real dollar value).
- On the cart page (remind the customer of the potential available value).
- On the checkout page (create urgency around using the points).
- On product pages (adds context to earning potential).
- As email campaigns (reminds a person of their reward value).
- On the thank you pages (now shows the new updated value of the customer).
Why Use It: It converts the non-tangible points into a more tangible dollar value increasing the perceived value of the points and the likelihood to use the points.
Configuring Shortcode Settings #

To Open shortcode configuration:
- Go to DevDiggers Plugins → LoyaltyX → Configuration.
- Select the Shortcodes tab.
- You will see the list of available shortcodes with descriptions.
NOTE: The Shortcodes Settings page will show:
- Points Dashboard shortcode code and description.
- Points Value Available shortcode code and description.
- Default functionality for each of the shortcodes.
- What the customers will see when they use those shortcodes.
There is nothing else to configure – the Shortcodes will work as soon as you copy and paste them!
Next Steps #
With shortcodes in place, your loyalty program is now visible across your whole site.
Next, you will want to:
- Configure Points Earning and Redeeming Settings to clarify how customers will earn and redeem points.
- Configure Email Settings to automate notifications to customers.
- Create Display Messages that reflect your brand voice.
Strategic shortcode placement transforms passive loyalty programs into an active engagement engine that drives repeat purchases and customer retention.
