Skip to content

Instantly share code, notes, and snippets.

@inetbiz
Created June 4, 2015 12:54
Show Gist options
  • Save inetbiz/7b7a266b8796a24d7d73 to your computer and use it in GitHub Desktop.
Save inetbiz/7b7a266b8796a24d7d73 to your computer and use it in GitHub Desktop.
Avada single.php add shortcode for user social on author bio loop
<div class="about-author">
<?php
ob_start();
the_author_posts_link();
$title = sprintf( '%s %s', __( 'About the Author:', 'Avada' ), ob_get_clean() );
echo do_shortcode( sprintf( '[title size="2" content_align="left" style_type="default"]%s[/title]', $title ) );
?>
<div class="about-author-container">
<div class="avatar">
<?php echo get_avatar(get_the_author_meta('email'), '72'); ?>
</div>
<div class="description">
<?php the_author_meta("description"); ?>
</div>
</div>
<div><hr /><?php
$var = do_shortcode( '[social_links icons_boxed="" icons_boxed_radius="" icon_colors="" box_colors="" tooltip_placement="" rss="' . get_author_feed_link( get_the_author_meta( 'ID' )) . '/rss2" facebook="" twitter="https://www.twitter.com/' . get_the_author_meta( 'author_twitter' ) . '" instagram="" dribbble="" google="' . get_the_author_meta( 'author_gplus' ) . '" linkedin="' . get_the_author_meta( 'author_linkedin' ) . '" blogger="" tumblr="" reddit="" yahoo="" deviantart="" vimeo="" youtube="" pinterest="" digg="" flickr="" forrst="" myspace="" skype="" paypal="" dropbox="" soundcloud="" vk="" email="" show_custom="" alignment="" class="" id=""]' );
echo $var; ?>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment