Shortcodes – What They Do & What They Are

Shortcodes are the equivalent of Macros that execute tasks in WordPress. These are built in the Crew Manager program so that a user may perform tasks of various complexity. They may be as simple as substituting text for the shortcode, or generating an entire page with custom lists. Shortcodes are generally entered on WordPress Pages & Posts. The good thing about shortcodes is that a shortcode may be placed on a page without a user knowing how to do software programming. The codes may be created with complex software to generate the desired results. Users are insulated from having to enter complex software and introducing potential errors that may bring down the website.

A shortcode is entered in a post or page enclosed by square brackets. For example – [boat] is a Crew Manager shortcode that returns the boat type and name of the boat (e.g. [boat] displays J/109 Vento Solare).

The list below provides shortcodes that are available to use in Crew Manager. These may be inserted in a sidebar widget, post or page to customize content. The list at the bottom contains shortcodes that Crew Manager uses to generate pages or sections of pages.

These shortcodes are available to Skippers to use on any pages, posts or events.

      • [boat] – displays the boat type & name in text as saved in the WordPress site name (e.g. J/109 Leading Edge)
      • [boat_country] – displays the boat country saved in International Options, otherwise Unites States
      • [boat_name] – displays the boat name in text (e.g. Leading Edge) as saved in whatever is found first:
        • 1. Regatta Registration block on site dashboard
        • 2. Boat Name as stored when ordered in the shop
        • 3. The WordPress site name which may include the boat type as a prefix
      • [boaturl] – displays the boat name with the site URL link as saved in the WordPress site name (e.g. J/109 Leading Edge)
      • [checksubdomain] – provides a box to enter desired subdomain name to check availability to create a new Crew Manager website
      • [cdt] – prefixes ai1ec content with the [cdt][/cdt] shortcode to display XX days until event
      • [dashicon icon="icon-name"] – displays any WordPress dashboard icon available using the icon names at this link
      • [date] – displays the current date text in format which looks like Sun January 19th, 2019
      • [eventdate] – displays the ai1ec event date as a formatted date which looks like Mon March 18th @ 9:00AM
      • [expiration blog_id=#] – displays the subscription expiration date for a selected Crew Manager site. If no blog_id reports the current site.
      • [private][/private] – protects content between the tags so it is only visible if logged in, otherwise displays (protected content) with a login link.
      • [prurl] – displays the protocol relative url (no leading https://) of a Crew Manager site as text (e.g. frb.crew-mgr.com )
      • [resetemail] – displays the password reset "from" email in the format subdomain@domain.com (unique for each subdomain)
      • [resetemailfull] – displays the password reset "from" email in the format subdomain@domain.com (unique for each subdomain) formatted as mailto link
      • [rawurl] – displays the url of a Crew Manager site as text (e.g. http://frb.crew-mgr.com/ )
      • [results-summary] – displays a summary results table using the most recent past 5 events
      • [sitelist] – displays formatted list of Crew Manager subdomain sites by name with link in list format
      • [siteurl] – displays the url of a Crew Manager site as a link (e.g. http://frb.crew-mgr.com/ )
      • [skipperemail] – displays the Skipper's name with email address formatted as mailto link (e.g. Dennis Conner )
      • [skipperemailfull] – displays the Skipper's email address formatted as mailto link (e.g. dennis@crew-mgr.com )
      • [subdomain] – displays just the subdomain for a site (e.g. the site frb.crew-mgr.com will display frb)
      • [time_date left=x or right=x top=y] (x & y assumed to be % for positioning) to display a calendar clock with date badge and current time H:M:s am/pm for overlay on header
      • [wpadminemail] – Inserts the site WordPress administrator email address formatted as mailto link
      • [x_before minutes=# post_id=x] – generates a time that is # minutes before the start of an event formatted as 5:45pm. The post_id=x parameter is optional and may include a forced post_id. This is useful if you want to tell Crew in the text of the event to meet # minutes before the boat call time.
Was this page helpful?