Skip to content

New profile social links

After Activate TTT Social will see this new fields in your Profile: Twitter, Facebook, Vimeo, Instagram, Pinterest, Youtube, Github and Dribble.

Profile ‹ Site name — WordPress

 

This fields will not be added automatically to your Theme or Author template part, if you want to show them can use this example with Font Awesome:

[php]

<ul class="list-inline">
<?php if ( $user_url = get_the_author_meta( ‘user_url’ ) ) : ?>

<li><a class="fa fa-globe" href="<?php echo $user_url; ?>"></a></li>

<?php endif; ?>
<?php if ( $user_fb = get_the_author_meta( ‘facebook’ ) ) : ?>

<li><a class="fa fa-facebook" href="<?php echo $user_fb; ?>"></a></li>

<?php endif; ?>
<?php if ( $user_tw = get_the_author_meta( ‘twitter’ ) ) : ?>

<li><a class="fa fa-twitter" href="<?php echo $user_tw; ?>"></a></li>

<?php endif; ?>
<?php if ( $user_ig = get_the_author_meta( ‘instagram’ ) ) : ?>

<li><a class="fa fa-instagram" href="<?php echo $user_ig; ?>"></a></li>

<?php endif; ?>
<?php if ( $user_pin = get_the_author_meta( ‘pinterest’ ) ) : ?>

<li><a class="fa fa-pinterest" href="<?php echo $user_pin; ?>"></a></li>

<?php endif; ?>
<?php if ( $user_you = get_the_author_meta( ‘youtube’ ) ) : ?>

<li><a class="fa fa-youtube" href="<?php echo $user_you; ?>"></a></li>

<?php endif; ?>
<?php if ( $user_vim = get_the_author_meta( ‘vimeo’ ) ) : ?>

<li><a class="fa fa-vimeo" href="<?php echo $user_vim; ?>"></a></li>

<?php endif; ?>
<?php if ( $user_git = get_the_author_meta( ‘github’ ) ) : ?>

<li><a class="fa fa-github" href="<?php echo $user_git; ?>"></a></li>

<?php endif; ?>
<?php if ( $user_dbb = get_the_author_meta( ‘dribbble’ ) ) : ?>

<li><a class="fa fa-dribbble" href="<?php echo $user_dbb; ?>"></a></li>

<?php endif; ?>
[/php]

Leave a Reply

Your email address will not be published.