mycred_lottery

Codex / mycred/game / Shortcodes / mycred_lottery

Description

This shortcode allows you to show a particular lottery. Users who are logged in and can afford to play can play the lottery using this shortcode.

Requires the Lottery add-on to be installed and enabled.

Available since version 1.0

Shortcode Attributes

Attribute Type Required Default Description
id int Yes - The lottery ID to show.
show_title int No 1 Option to show the lottery title (1) or hide the title (0).
show_results int No 1 Option to show the lottery results (1) or hide the results (0).

CSS Styling

// Wrapper
div.mycred-lottery { }

// Play area
div.mycred-play-area { }

Example

Example 1: Show the lottery with the ID 4 but hide the lottery's title.

[mycred_lottery id=4 show_title=0]

Last edited June 23, 2016