X
🐾 Coming from PetMatchPro 6.x? Version 8 adds real adoption analytics, similar-animal suggestions, SEO-friendly URLs, and overlay badges. See What's New →
PetMatchPro
  • Partners
    • AnimalsFirst
    • PetPoint
    • RescueGroups
  • What’s New
  • Shop
  • Demo
  • FAQ
  • Knowledge Base
  • About Us
  • Contact Us
  • My Account
  • Cart
Select Page
Green rocket icon for Getting Started documentation category

Getting Started

6
  • Activate Your License
  • Setup Wizard Walkthrough
  • Connecting Your Shelter System
  • Understanding License Tiers
  • Creating Your First Search Page
  • Creating Your First Detail Page
Blue code brackets icon for Shortcodes and Configuration documentation category

Shortcodes & Configuration

12
  • Shortcode Builder
  • [pmp-search] Reference
  • [pmp-details] Reference
  • [pmp-detail] Reference
  • [pmp-option] Reference
  • Parameters by License Tier
  • Common Shortcode Recipes
  • Pagination Setup
  • Excluding Values
  • Search Filter Button
  • Detail Button Hover Text
  • Search Card Hover Text
Purple palette icon for Templates and Design documentation category

Templates & Design

7
  • Search Templates Gallery
  • Detail Templates Gallery
  • Poster Templates
  • Theme Template Overrides
  • Color Customization
  • Font Size Customization
  • Detail Title Formats
Orange image with star icon for Icons and Overlays documentation category

Icons & Overlays

6
  • Understanding Pet Icons
  • Understanding Overlays
  • Icon Reference Gallery
  • Customizing Icon Display
  • Value-Based Icons
  • Icon Size Customization
Teal tag icon for Labels and Customization documentation category

Labels & Customization

3
  • Custom Labels Guide
  • Changing Labels via Filtering
  • Custom Currency & Date Formats
Blue funnel icon for Filters and Search documentation category

Filters & Search

5
  • Setting Up Search Filters
  • Species & Breed Filtering
  • Filter Value Management
  • Excluding Values via Filtering
  • Partner-Specific Filter Options
Violet chain link icon for Partner Integration Guides documentation category

Partner Guides

3
  • AnimalsFirst Integration Guide
  • PetPoint Integration Guide
  • RescueGroups Integration Guide
Red bar chart icon for Analytics and Tracking documentation category

Analytics & Tracking

7
  • Understanding PMP Analytics
  • GA4 Configuration
  • Google Tag Manager Setup
  • Leveraging Analytics
  • WP-Cron Requirements for PetMatchPro Analytics
  • Queue Health and Tools
  • Privacy and Data Retention
Lightbulb icon representing PetMatchPro best practices guides for homepage layouts, button strategy, performance tuning, and template selection

Best Practices

10
  • Featuring Animals on Your Homepage
  • Adding Animals to Sidebars and Other Pages
  • Using Banners and Subtitles Effectively
  • Overlays and Icons for Quick Visual Cues
  • Writing Effective Detail Page Instructions
  • Button Configuration for Conversion
  • Optimizing Performance with API Caching
  • Customizing Typography and Icon Sizes
  • Lost and Found Search Best Practices
  • Template Selection Guide
Amber wrench icon for Troubleshooting and FAQ documentation category

Troubleshooting

15
  • Common Error Messages
  • API Connection Issues
  • Template Not Found Errors
  • Theme Template Override Not Loading
  • Performance & Caching Best Practices
  • Animals Not Displaying
  • Stale Content / Cache Issues
  • Styling Conflicts
  • Empty Field Display
  • Analytics Queue Stuck or WP-Cron Not Running
  • Premium Feature Not Appearing After Upgrade
  • Troubleshoot the PetMatchPro Shortcode Builder
  • Reading PMP Debug Logs
  • wp-config.php Configuration Constants
  • How to Contact Support
View Categories
  • Home
  • Knowledge Base
  • Shortcodes & Configuration
  • Shortcode Builder

Shortcode Builder

6 min read

Shortcode Builder #

PetMatchPro Shortcode Builder admin tab with Core, Content, Display, Icons & Overlays, and Advanced groups and a generated pmp-search shortcode in the output textarea below

The Shortcode Builder is a visual tool inside your WordPress admin that generates correct, copy-paste-ready PetMatchPro shortcodes – no hand-typing required. It understands your configured partner, your license tier, your installed templates, and your field set, and only offers options that are valid for your site.

Who Can Use It #

The Shortcode Builder is available on Junior and Preferred licenses. Basic License sites see the tab with an upgrade notice.

Where to Find It #

In your WordPress admin, open the PetMatchPro Options page and click the Shortcode Builder tab.

PetMatchPro Options admin tab row with the Shortcode Builder tab highlighted between Instructions and Analytics

What’s Supported #

The builder supports all four PetMatchPro content shortcodes, each on its own sub-tab:

  • [pmp-search] – search-result pages. Method, template, fields, filters, species, pagination, labels, icons, overlays, client mode, and more.
  • [pmp-details] – single-animal detail pages. Template, fields, quick fields, title fields, stats rows, labels, social share, thumbnails, icons, overlays, poster flag, and per-button hover-text overrides.
  • [pmp-detail] – a single field value for the current animal. Field picker (method-scoped), letter case, whitespace-replacement text.
  • [pmp-option] – a saved admin setting value. Option Type (Colors / Contact / Fonts / General / Labels / Partner) and the specific Value key within that type.

Sub-Tab Navigation #

A row of sub-tabs at the top of the builder switches between the four shortcodes. Each sub-tab preserves its own form state – if you fill in [pmp-search], switch to [pmp-details], and switch back, your [pmp-search] values are still there. The Generated Shortcode textarea always reflects the active sub-tab.

Every sub-tab header has a KB help icon linking back to that shortcode’s reference article.

How It Works #

The [pmp-search] and [pmp-details] sub-tabs group controls into collapsible sections for ease of scanning:

  • Core – method type and template.
  • Content – fields to display, filter widgets, species, and (on [pmp-details]) quick / title / stats field groups.
  • Display – title / subtitle / banner, results-per-row, row counts, pagination, labels, separator, order-by, sort order, hide-empty, heading sizes.
  • Icons & Overlays – icon toggle, max icons per card, icon size, photo overlays, max overlays per photo, overlay filter, overlay position.
  • Advanced – client mode, button consistency, exclude values, poster flag, exclude buttons, hover-text overrides.

The [pmp-detail] and [pmp-option] sub-tabs use a single Core section – they have fewer parameters and no grouping is needed.

As you change fields, a live Generated Shortcode textarea at the bottom of the form updates on every keystroke. When you’re happy with the output, click Copy to clipboard and paste into any page or post.

Required-Field Validation #

Some parameters are required (for example, [pmp-option] needs both a type and a value). If a required parameter is missing, a yellow Missing required: banner appears between the output label and the textarea, listing which fields still need to be filled. The textarea still updates so you can see the shortcode as it stands, but the banner makes it clear the output is not yet complete.

Locked Parameters #

If a parameter requires a higher license tier than your site has, it renders in a disabled state with a lock icon, a tooltip naming the required tier, and an Upgrade link. Locked parameters stay visible (not hidden) so you can see what upgrading unlocks. In the current release every Shortcode Builder parameter is available at Junior and Preferred, so Junior and Preferred sites see no locks. Basic License sites see the tab-level upgrade notice instead of the form and therefore do not see individual locks either. As future releases add Preferred-only parameters, Junior sites will start seeing them in the locked state described above. For a full breakdown of which parameters each tier includes, see Parameters by License Tier.

Partner and Method Awareness #

The builder is aware of your configured partner and the method you select:

  • The method dropdown only lists methods your partner supports.
  • Changing the method repopulates the Template dropdown with templates that exist for that method plus any universal templates.
  • The Fields to Display checkboxes, the Search Filters list, the Species dropdown, Order By, and Sort Order all re-populate for the selected method.
  • On [pmp-detail], the single-field Field dropdown is also method-scoped. Fields that require a higher license tier than yours are shown with an (Upgrade required) suffix and are disabled so you cannot generate a shortcode that would fail at render time.
  • Parameters a partner doesn’t support (for example, PetPoint does not expose sort order as a filter) are hidden entirely rather than rendered empty.

Method Type on [pmp-detail] and [pmp-details] #

The [pmp-detail] and [pmp-details] shortcodes do not accept a type parameter – they infer the method from the page URL at runtime. The Method Type selector on those sub-tabs is therefore a UI-only scoping control: it filters the Template and Field lists to the method you are targeting but is never emitted in the generated output.

[pmp-option] Value Source #

On the [pmp-option] sub-tab, the Value dropdown is populated from the keys actually saved under the selected Option Type on this site. That means:

  • If the selected tab has never been saved (for example a fresh install that has not touched the Labels tab), the Value list is empty and a bold note appears prompting you to save that tab first. Once saved, reload the Shortcode Builder tab and the keys will appear.
  • Fonts are the one exception – the Value list falls back to the declared font_size_* constants so you can generate a Fonts shortcode even before saving the Fonts tab.
  • The Filter Values option group is intentionally excluded from the Option Type dropdown – its values are nested arrays per filter field, not scalar strings, so [pmp-option] cannot render anything useful from them.

Hiding All Filters vs. Selecting Filters #

The Search Filters multiselect lets you pick specific filter widgets to render, or pick the special Disable all filters option to suppress the filter widget entirely. Leave the multiselect empty to use the admin-configured default.

Conditional Fields #

The Field Separator control only appears when Show Field Labels is set to Disable. When labels are shown, a separator is not needed.

Copy-to-Clipboard #

The builder uses the modern Clipboard API. On older browsers or non-HTTPS local dev sites where the Clipboard API is unavailable, the textarea is selected automatically and a notice prompts you to press Ctrl+C / Cmd+C.

Refreshing Source Data #

The builder reads its filter values, templates, and field sets once per page load. If you change a filter value, install a new template file, or update labels in the Labels tab, reload the Shortcode Builder tab to pick up the new data.

Current Limitations #

On the roadmap – not yet in the builder:

  • Live preview. The builder emits a shortcode string; it does not render a sample result.
  • Saved presets. Each session starts fresh; copy the output to reuse.
  • Shortcode parsing. Pasting an existing shortcode does not pre-populate the form.

Frequently Asked Questions #

Why is my Species dropdown empty? #

Species values come from the Filter Values tab. For AnimalsFirst and RescueGroups, click Refresh Filter Values in that tab to pull the latest list from your partner’s API. For PetPoint, species values ship with the plugin.

Why don’t I see Sort Order when my partner is PetPoint? #

PetPoint’s API does not expose a user-facing sort-order filter, so the builder hides that control entirely for PP sites rather than showing an empty dropdown. AnimalsFirst and RescueGroups both expose sort order and will show the control.

Why are some fields greyed out with a lock icon? #

Those parameters require a higher license tier than your site currently has. Hover the lock icon for the specific tier required, or see Parameters by License Tier for the full list.

I added a new template to my theme – why doesn’t it show up in the builder? #

Template discovery runs once per page load. Reload the Shortcode Builder tab to pick up new template files.

Can I edit the generated shortcode by hand? #

Yes. Copy the output into your page or post and edit freely. The builder is a starting point, not a required gateway – any valid PetMatchPro shortcode works whether the builder produced it or not.

My [pmp-option] Value dropdown is empty. Why? #

The Value list reads from the live saved settings for the selected Option Type. If that admin tab has never been saved on this site, there is nothing to list. Open the matching admin tab, save it once, then reload the Shortcode Builder tab.

Next Steps #

  • [pmp-search] Reference – all parameters the Search sub-tab can emit
  • [pmp-details] Reference – all parameters the Details sub-tab can emit
  • [pmp-detail] Reference – all parameters the Detail sub-tab can emit
  • [pmp-option] Reference – all parameters the Option sub-tab can emit
  • Parameters by License Tier – what each tier unlocks
  • Common Shortcode Recipes – copy-paste examples
Shortcode Builder ultima modifica: 2026-04-12T20:09:18-04:00 da PetMatchPro
Updated on May 1, 2026

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Search Card Hover Text[pmp-search] Reference

Submit a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Table of Contents
  • Shortcode Builder
    • Who Can Use It
    • Where to Find It
    • What's Supported
    • Sub-Tab Navigation
    • How It Works
    • Required-Field Validation
    • Locked Parameters
    • Partner and Method Awareness
    • Method Type on [pmp-detail] and [pmp-details]
    • [pmp-option] Value Source
    • Hiding All Filters vs. Selecting Filters
    • Conditional Fields
    • Copy-to-Clipboard
    • Refreshing Source Data
    • Current Limitations
    • Frequently Asked Questions
      • Why is my Species dropdown empty?
      • Why don't I see Sort Order when my partner is PetPoint?
      • Why are some fields greyed out with a lock icon?
      • I added a new template to my theme - why doesn't it show up in the builder?
      • Can I edit the generated shortcode by hand?
      • My [pmp-option] Value dropdown is empty. Why?
    • Next Steps

© Copyright 2018-2026 by PetMatchPro, All Rights Reserved

  • Privacy Policy
  • Terms of Use
  • Disclaimer
  • Login