Shortcodes are executed by wrapping a text string between square brackets. This text string acts as a “key” that executes the shortcode. Shortcodes are entered into the content area like this: [short-code].
Below is a list of custom shortcodes based on the input fields of the “Short Codes” admin area of the WordPress Dashboard:
Shortcode:[show-current-date]
Output: Sunday, December 22nd
Shortcode:[ipa-membership-count]
Output: 238,000
Shortcode:[clinic-membership-count]
Output: 28,500
Shortcode:[ipa-pcp-count]
Output: 433
Shortcode:[ipa-contracted-prov-count]
Output: 3,201
Shortcode:[ipa-county-count]
Output: 7
Below is an example of the use of shortcodes in content editing. Text in bold is the result of the use of a shortcode:
The way it is written:
Today’s date is [show-current-date].
The IPA Membership Count is: [ipa-membership-count].
The current Clinic Membership Count is [clinic-membership-count].
The current IPA Membership Count is [ipa-membership-count].
The current IPA PCP Count is [ipa-pcp-count].
The current IPA Contracted Prov Count is [ipa-contracted-prov-count].
The current IPA County Count is [ipa-county-count].
The way it is displayed:
Today’s date is Sunday, December 22nd.
The IPA Membership Count is: 238,000.
The current Clinic Membership Count is 28,500.
The current IPA Membership Count is 238,000.
The current IPA PCP Count is 433.
The current IPA Contracted Prov Count is 3,201.
The current IPA County Count is 7