Shortcodes

Shortcodes

Menu Shortcode

The menu can be displayed using the shortcode [contest-menu]. It will then be displayed on every page of the contest.
It may be modified further by, e.g., changing the colour in the contest settings (There are 27 color opions).

Shortcode example:

[contest-menu]



Contest Shortcode

Default shortcode for contest is [contest-page]. This shortcode is without other attributes

Shortcode example:

[contest-page]



Contest Width Shortcode

There are thousands of WordPress layouts of various colours and sizes. The plugin should adapt to these in most cases. But it may not in every case. This shortcode helps you control a width of the contest. This code has a start and end tag. Maximum value you can set is 1100 ( 1100 = 1100px).
Start Tag – [contest-width]
End Tag – [/contest-width]
Start Tag have only one, but required, attribute “width”. So if you wanna use this shortcode you must set the attribute width

Shortcode example:

[contest-width width="645"][contest-menu][contest-page][/contest-width]



Single Image Shortcode

If you wanna show single image, from photo contest, in your post/page use shortcode
You can also control image width using attribute “width”

Shortcode example:

[contest-single-image id="73" width="300"]



Rules & Prizes Shortcode

If you wanna show rules from specific contest, use a special shortcode in your post/page
[contest-rules id="CONTEST-ID"]
where CONTEST-ID is the ID of the contest. This ID you will find in admin area “Photo Contest -> Contest” section

Shortcode example:

[contest-rules id="15"]