Skip to content

Shortcodes Reference

Paste a shortcode into a WordPress Shortcode block. Replace example product IDs with your own.

Shortcode Purpose
[competitions limit="12" columns="3" category="cars"] List competitions. The attributes in this example set the maximum number of results, columns, and product category.
[featured_competitions] List featured competitions.
[recent_competitions] List recently published competitions.
[ending_soon_competitions] List competitions by nearest closing date.
[future_competitions] List upcoming competitions.
[finished_competitions] List finished competitions.

Use ids="123,456" to limit a list to specific products. Use orderby and order to control the order. For example, orderby="date" order="DESC" shows the most recent products first when supported by the list.

Shortcode Purpose
[competitions_winners] Display main draw winners.
[competition_draw_results ids="123"] Show draw results for the specified competition. Omit ids to list results across competitions. [competitions_draw_results] is an alias.
[all_instant_wins] Show instant winners grouped by competition.
[all_instant_winners limit="20"] List instant winners across competitions.
[instant_winners_tab] Show the instant prizes and winners table on a competition page.
Shortcode Purpose
[my_competitions] Show the signed-in customer’s active and won competitions in separate sections.
[my_active_competitions] Show the signed-in customer’s active competitions.
[winned_competitions] Show competitions the signed-in customer has won.

For ticket history and personal instant prizes, use My Account.

  • [qcw_templates template="countdown" product_id="123"] displays the countdown for product 123. Other template values include add-to-cart, participate, progressbar, info, future-info, winners, answers, ticket-numbers, lucky-dip, range-slider, bulk-discount, instant-prizes-info, instant-prizes-grouped, entry-info, entry-table, status-badge, and instant-win-badge. [competition_templates] and [lottery_templates] are aliases.
  • [live_draw id="123"] displays the viewer for a closed competition that supports live draw viewing. The viewer can be hidden when the draw finishes.
  • [lucky_dip_button] is a legacy shortcut. For a custom competition layout, use the Lucky Dip block or widget, or [qcw_templates template="lucky-dip"] in the competition’s product layout.