[pmp-option] Reference #
The [pmp-option] shortcode displays the value of a setting from the PetMatchPro administration area. Use it to surface configured values — like a phone number or email address — directly on your site pages or in custom templates.
[pmp-option] string from the Shortcode Builder tab in the PetMatchPro admin. The builder shows only parameters valid for your partner, method, and license tier.Basic Usage #
[pmp-option type="contact" value="adoptable_phone"]
Displays the value of the Adoption Phone setting from the Contact Options tab.
Parameters #
| Parameter | Required | Values | Description |
|---|---|---|---|
type |
Yes | general, partner, color, contact, label, fonts (Junior+) |
The admin settings tab containing the desired setting. partner reads partner-specific filter settings (API source, status overrides) and matches the “Partner” label shown in the Shortcode Builder. The legacy form type="filter" is still accepted as a synonym for backward compatibility. |
value |
Yes | HTML id of the admin setting field |
The specific setting to display. Find the id by inspecting the HTML of the desired field on the admin settings page. |
Tier Access #
The type parameter determines which license tier is required:
| Type | Tier Required |
|---|---|
general |
Basic (Free) |
partner (or legacy filter) |
Basic (Free) |
color |
Basic (Free) |
contact |
Basic (Free) |
label |
Basic (Free) |
fonts |
Junior+ |
Note: The Shortcode Builder lists six option types, but the Filter Values option group (filters-customize) is intentionally excluded from [pmp-option] — its values are nested arrays of per-field exclusions and label overrides, not scalar strings, so the shortcode cannot render them as a single value.
If your license tier doesn’t have access to the specified type, an upgrade notice is displayed instead of the value.
Examples #
Display the adoption phone number:
[pmp-option type="contact" value="adoptable_phone"]
Display the support email:
[pmp-option type="contact" value="email_support"]
Display a general setting value:
[pmp-option type="general" value="api_key"]
Display a partner-specific filter setting:
[pmp-option type="partner" value="api_source"]
Display a font size value (Junior+):
[pmp-option type="fonts" value="font_size_search_title"]
Use Cases #
This shortcode is most useful when you want to:
- Display contact information (phone, email) from your PetMatchPro settings on any page
- Keep displayed values in sync with admin settings — change it once in the admin, and it updates everywhere
- Reference configured values in custom page layouts or templates
Notes #
- Both
typeandvalueare required. The shortcode displays an error message if either is missing. - Only a single setting can be displayed per shortcode instance. Use multiple shortcodes for multiple values.
- The
valueparameter must match the HTMLidattribute of the admin field. Inspect the field on the admin settings page to find it. - The shortcode returns the raw value without formatting — you are responsible for any display formatting needed.
Next Steps #
- [pmp-search] Reference — Search shortcode reference
- [pmp-details] Reference — Full detail page shortcode
- [pmp-detail] Reference — Single field display shortcode