[memb_contact]

[memb_contact fields=”FirstName”]
Value: [memb_contact fields=”FirstName”]

[memb_contact fields=”FirstName” default=”Foo”]
Value: [memb_contact fields=”FirstName” default=”Foo”]

[memb_contact fields=”FirstName,LastName” sep=” “]
Value: [memb_contact fields=”FirstName,LastName” sep=” “]

[memb_contact fields=EmailAddress2]
Value: [memb_contact fields=EmailAddress2]

[memb_contact fields=emailAddress3]
Value: [memb_contact fields=emailAddress3]

[memb_contact fields=”FirstName” txtfmt=strtoupper]
Value: [memb_contact fields=”FirstName” txtfmt=strtoupper]

[memb_contact fields=”FirstName” txtfmt=md5]
Value: [memb_contact fields=”FirstName” txtfmt=md5]

Invalid Field Test
[memb_contact fields=_NoSuchField]
Value: [memb_contact fields=_NoSuchField]


Shortcode Post-Processing

The following functions are supported. Multiple functions can be executed by separating them with comma’s:

addslashes, bin2hex, convert_uudecode, convert_uuencode, crc32, crypt, html_entity_decode, htmlentities, htmlspecialchars, htmlspecialchars_decode, lcfirst, ltrim, md5, nl2br, remove_accents, rtrim, sha1, str_rot13, stripslashes, strlen, strrev, strtolower, strtoupper, ucfirst, trim, ucwords, wptexturize

[memb_contact fields="firstname" txtfmt="strtolower,ucwords"]

[memb_contact fields=”firstname” txtfmt=”strtolower,ucwords”]

[memb_contact fields="firstname,lastname" txtfmt="strtolower,ucfirst"]

[memb_contact fields=”firstname,lastname” txtfmt=”strtolower,ucfirst”]

[memb_contact fields="firstname,lastname" txtfmt="strtolower,ucwords"]

[memb_contact fields=”firstname,lastname” txtfmt=”strtolower,ucwords”]

[memb_contact fields="firstname" txtfmt="strtoupper,str_rot13"]

[memb_contact fields=”firstname” txtfmt=”strtoupper,str_rot13″]

Used in a string

My name is [memb_contact fields=”firstname,lastname” txtfmt=”strtolower,ucwords”].

Custom Field
[memb_contact fields=”_ReferringDoctor”]

Regression Test
[memb_contact fields=”FirstName,LastName” separator=”,”]

Other Contact Demo (contact id = $_GET[‘id’])
[memb_contact fields=”FirstName” contact_id=”{{get.id}}”]

No Date Formatting
[memb_contact fields=”LastUpdated”]

Date Formatting
[memb_contact fields=”LastUpdated” date_format=”Y-m-d h:i:s”]
[memb_contact fields=”LastUpdated” date_format=”M yS, Y h:i:sA”]
Mixed: [memb_contact fields=”FirstName,LastUpdated” date_format=”Y-m-d h:i:s”]

LeadSource
[memb_contact fields=”LeadSource”]

Null Field Test
[memb_contact fields=suffix]


Current Session

[memb_session]

Leave a Comment