[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.
- 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
teampost type).- Options: Any numeric value.
- data – The icon set number for displaying social media icons.
- Default:
phone,email. - Options:
address,phone,alternative_phone,email. Use commas,to separate.
- Default:
- disable_html – Whether to disable HTML output.
- Default:
no. - Options:
yes,no. Specify one only.
- Default:
- separator – The separator used to join multiple contact details. Use this only if html is disabled.
- Default:
,, - Options: Any text value.
- Default:
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. |
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. |
team post type).