Pilotpress Shortcodes and Merge Fields

Recently, Ontraport re-did their online support pages and some of the information that used to be available is temporarily unavailable. Something that was missing at the time of this post was information about Pilotpress shortcodes and merge fields. Here is a list of merge fields and shortcodes you can use at your WordPress website if you have an Ontraport account and the Pilotpress plugin installed.

Merge Fields

These are shortcodes you can use to show information about the logged-in contact from their Ontraport contact record. The format is [pilotpress_field name=”{field name in Ontraport}”].

[pilotpress_field name=”First Name”]
[pilotpress_field name=”Last Name”]
[pilotpress_field name=”Email”]

Functional Shortcodes

Pilotpress includes some useful shortcodes you can use to display content to your Ontraport contacts based on membership levels and tags they may or may not have.
(note: the braces {} below are placeholders; don’t include them in your shortcodes.)

  • [show_if has_one=”{membership level names separated by commas}”]content[/show_if]
  • [show_if has_all=”{membership level names separated by commas}”]content[/show_if]
  • [show_if not_one=”{membership level name}”]content[/show_if]
  • [show_if not_any=”{membership level names separated by commas}”]content[/show_if]
  • [show_if has_tag=”{tag name}”]content[/show_if]
  • [show_if does_not_have_tag=”{tag name}”]content[/show_if]
  • [show_if is_contact]content[/show_if]
  • [show_if not_contact]content[/show_if]
  • [show_if is_cookied_contact]content[/show_if]
  • [show_if not_cookied_contact]content[/show_if]
  • [pilotpress_sync_contact]

Login Form

  • Default: [login_page]
  • With user selected customization: [login_page style=’default’ forgotpw=’on’ width=’320px’ bgcolor=’#ffffff’ textcolor=’#333333′]

2 Replies to “Pilotpress Shortcodes and Merge Fields”

  1. Hi there, and thank you for this resource!

    I thought I’d leave a reply in the hopes of saving someone who reads this a bit of time and confusion.

    For those who are copy-pasting the shortcodes in this article, make sure to replace the apostrophes e.g.:

    [pilotpress_field name=’First Name’] -> [pilotpress_field name=’First Name’]

    It’s very subtle, and for the longest time, I couldn’t figure out for the life of me why it wasn’t rendering properly.

    As it only seemed to work when I added the shortcodes through WP’s classic (default) editor via the dropdown menu, but didn’t seem to work when I copied in the shortcodes from this article.

    And then I had the “A-ha!” moment, it was the apostrophes!

    Thanks man, great blog!

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.