With BadgeOS activated, the following shortcodes can be placed on any page or post within WordPress to expose a variety of BadgeOS functions.
List of Achievements
Use this shortcode to generate a list of achievements of any type on any page:
[badgeos_achievements_list]
Available parameters:
- “type” — Which Achievement Types to list. Default: all. (Use the Achievement Type’s slug as the type.)
- “limit” — the number of achievements to display per page. Default: 10.
- “show_filter” — Display the filter menu options above the list. (Accepts: true, false) Default: true
- “show_search” — Display the search form above the list. (Accepts: true, false) Default: true
Example:
[badgeos_achievements_list type=badges limit=15]
Any Individual Achievement (New in v1.1)
Use this shortcode to embed a single achievement on any post or page. This is a great tool if you want to display a specific achievement (including its title, badge image, and excerpt, along with a link to the full achievement) on any other WordPress post or page.
[badgeos_achievement]
Required parameter:
- “id” — The ID of the achievement to display.
Example:
[badgeos_achievement id=12]
Submission Box
Use this shortcode to add a submission box on any WordPress post or page that is tied to a specific achievement. When the submissions is accepted, the achievement is earned. This is a great way to create a call to action on any post or page on your site — even a non BadgeOS generated page — that invites submissions the result in the awarding of a badge or the completion of any other achievement when the submission is accepted. (The achievement specified must be set to require a Submission by the user.)
[badgeos_submission]
Required parameter:
- “id” — The ID of the achievement to be awarded when the submission is accepted.
Example:
[badgeos_submission achievement_id=35]
(If Earned By is set to Submission this shortcode is automatically added on the single BadgeOS-generated post for that achievement, and this shortcode is therefore not needed.)
Nomination Box
Use this shortcode to add a nomination box on any WordPress post or page that is tied to a specific achievement. When the nomination is accepted, the achievement is earned. This is a great way to create a call to action on any post or page on your site — even a non BadgeOS generated page — that invites nominations of fellow members of your site, resulting in the awarding of a badge or the completion of any other achievement when the nomination is accepted. (The achievement specified must be set to be awarded by Nomination.)
[badgeos_nomination]
Required parameter:
- “id” — The ID of the achievement to be awarded when the nomination is accepted.
Example:
[badgeos_nomination achievement_id=35]
(If Earned By is set to Nomination this shortcode is automatically added on the single BadgeOS-generated post for that achievement, and this shortcode is therefore not needed.)
Submissions Review Listing (New in v1.1)
Use this shortcode to place a list of pending, accepted and/or denied achievement Submissions on any page or post. The shortcode is role dependent: If a user has BadgeOS review privileges to review incoming BadgeOS Submissions, the listing will include all user Submissions and the ability to accept or deny. It the current user does not have the ability to review Submissions, they will instead see just their own Submissions. In this way, this shortcode lets you essentially set up an inbox/outbox on the front-end of your site so users and reviewers alike can track progress for achievements requiring interaction between site admin and site members.
[badgeos_submissions]
Available parameters:
- “limit” — Number of submissions to display per page. Default: 10
- “status” — Which Approval Status type to show on initial page load. (Accepts: all, pending, auto-approved, approved, denied) Default: all
- “show_filter” — Display the filter select input. (Accepts: true, false) Default: true
- “show_search” — Display the search form. (Accepts: true, false) Default: true
- “show_attachments” — Display attachments connected to the submission. (Accepts: true, false) Default: true
- “show_comments” — Display comments associated with the submission. Default: true
Example:
[badgeos_submissions status=pending limit=15]
Nominations Review Listing (New in v1.1)
Use this shortcode to place a list of pending, accepted and/or denied achievement Nominations on any page or post. The shortcode is role dependent: If a user has BadgeOS review privileges to review incoming BadgeOS Nominations, the listing will include all user Nominations and the ability to accept or deny. It the current user does not have the ability to review Nominations, they will instead see just their own Nominations.
[badgeos_nominations]
Available parameters:
- “limit” — Number of nominations to display per page. Default: 10
- “status” — Which Approval Status type to show on initial page load. (Accepts: all, pending, approved, denied) Default: all
- “show_filter” — Display the filter select input. (Accepts: true, false) Default: true
- “show_search” — Display the search form. (Accepts: true, false) Default: true
Example:
[badgeos_nominations show_search=false limit=20]