[team_social_media]

The shortcode displays the social media links of a team member.


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. iconset – The icon set number for displaying social media icons.
    • Default: 1.
    • Options: 1, 2, 3. Specify one only.

Example Usage

[team_social_media id="123"]

Results

<div class="social-media-details">
	<ul class="social-media">
		<li>
			<a href="https://facebook.com/username" rel="noopener" target="_blank"><span class="hidden">Facebook</span><i class="fa fa-facebook-f" aria-hidden="true"></i> </a>
		</li>
		<li>
			<a href="https://twitter.com/username" rel="noopener" target="_blank"><span class="hidden">Twitter</span><i class="fab fa-twitter" aria-hidden="true"></i></a>
		</li>
		<li>
			<a href="https://linkedin.com/in/username" rel="noopener" target="_blank"><span class="hidden">Linkedin</span><i class="fab fa-linkedin-in" aria-hidden="true"></i></a>
		</li>
	</ul>
</div>
Example:
This example display social media links for a team member with ID 123.
If no social media data is available, the shortcode will not display anything.