Shortcode Example Page

Custom WordPress Shortcodes

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:

Show Current Date

Shortcode:[show-current-date]

Output: Wednesday, November 25th

Return IPA Membership Count

Shortcode:[ipa-membership-count]

Output: 238,000

Return Clinic Membership Count

Shortcode:[clinic-membership-count]

Output: 28,500

Return IPA PCP Count

Shortcode:[ipa-pcp-count]

Output: 433

Return IPA Contracted Prov Count

Shortcode:[ipa-contracted-prov-count]

Output: 3,201

Return IPA County Count

Shortcode:[ipa-county-count]

Output: 7

Use shortcodes in content

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 Wednesday, November 25th.

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