Shortcodes
Menu Shortcode
The menu can be displayed using the shortcode [
recipe-contest-menu
]
. It will then be displayed on every page of the contest.
It may be modified further by, e.g., changing the color in the contest settings (There are 27 color opions).r
Shortcode example:
[
recipe-contest-menu
]
Contest Shortcode
Default shortcode for contest is [
recipe-contest-page
]
. This shortcode is without other attributes
Shortcode example:
[
recipe-contest-page
]
Contest Width Shortcode
There are thousands of WordPress layouts of various colors 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 1065 ( 1065 = 1065px).
Start Tag – [
recipe-contest-width
]
End Tag – [
/recipe-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:
[
recipe-contest-width width="845"
]
[
recipe-contest-menu
]
[
recipe-contest-page
]
[
/recipe-contest-width
]
Rules & Prizes Shortcode
If you wanna show rules from specific contest, use a special shortcode in your post/page
[
recipe-contest-rules id="CONTEST-ID"
]
where CONTEST-ID is the ID of the contest. This ID you will find in admin area “Recipe Contest -> Contest” section
Shortcode example:
[
recipe-contest-rules id="15"
]