[team_contact_info]

The shortcode displays contact information for team members.


Product


Shortcode Attributes

There are a number of shortcode attributes available which you can use to customize the output.

  1. id – The ID of the team member’s post. If this parameter is not provided, the shortcode will automatically use the ID of the current post (if it is a team post type).
    • Options: Any numeric value.
  2. data – The icon set number for displaying social media icons.
    • Default: phone, email.
    • Options: address, phone, alternative_phone, email. Use commas , to separate.
  3. disable_html – Whether to disable HTML output.
    • Default: no.
    • Options: yes, no. Specify one only.
  4. separator – The separator used to join multiple contact details. Use this only if html is disabled.
    • Default: ,,
    • Options: Any text value.

Example Usage

Example 1:

[team_contact_info]

Results

<div class="contact-details">
	<div class="contact-phone">
		<a href="tel:+123456789">+123456789</a>
	</div>
	<div class="contact-email">[email protected]</div>
</div>
This example displays contact information (phone and email) for the current team member.
If the id attribute is not provided, the shortcode will only work on singular team posts.

Example 2:

[team_contact_info data="phone,alternative_phone" disable_html="yes" separator=" | " ]

Results

+123456789 | +987654321
This example displays specific fields, such as phone and alternative_phone, and changes the separator.
The shortcode is designed to work with custom post types, specifically for team members (team post type).