[pmp-detail] Reference #
The [pmp-detail] shortcode displays a single field value for the current animal. Use it within detail templates or on pages where animal data is available.
Tip: You do not have to hand-type this shortcode. Junior and Preferred sites can generate a correct, copy-paste-ready
[pmp-detail] 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-detail detail="Name"]
Displays the value of the specified field for the current animal.
Parameters #
| Parameter | Required | Values | Description |
|---|---|---|---|
detail |
Yes | Field name (e.g., Name, Breed, Sex) |
The animal field to display. |
value |
No | Specific value within the field | Extract a specific value from the field data. Some value options require a paid subscription. |
case |
No | lower, mixed, upper |
Letter-case transform applied to the rendered value. lower = all lowercase (default), mixed = title case via ucwords(), upper = all uppercase. Junior+. |
replace |
No | Any text string | Replacement string substituted for whitespace runs in the rendered value. Useful for slug-style output (e.g., replace="-" turns “Lab Mix” into “lab-mix”). Junior+. |
Examples #
Display the animal's name:
[pmp-detail detail="Name"]
Display the animal's breed:
[pmp-detail detail="Breed"]
Display a specific value from a field:
[pmp-detail detail="Location" value="city"]
Render the breed in title case (Junior+):
[pmp-detail detail="Breed" case="mixed"]
Render the species as a slug-style value with hyphens for spaces (Junior+):
[pmp-detail detail="Species" case="lower" replace="-"]
Use Cases #
This shortcode is most useful when you want to:
- Display a single animal field in a custom page layout
- Include animal data in sidebar widgets
- Build custom templates that reference individual fields
- Show a specific piece of information outside the main detail template
Notes #
- This shortcode only works on pages where animal data is available (typically your detail page or within detail templates).
- The
detailparameter is required. The shortcode returns nothing without it. - Field names should match the field names used by your integration partner.
Next Steps #
- [pmp-search] Reference — Search shortcode reference
- [pmp-details] Reference — Full detail page shortcode
[pmp-detail] Reference
ultima modifica: 2026-03-24T13:46:14-04:00
da