Support » Plugin: Social Author Bio » [Plugin: Social Author Bio] Display in users comments

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Nick Powers


    It currently doesn’t do this on its own but should be straight forward, if you have a passing familiarity with PHP and WordPress, to add the following code to the comments:

    $icons = apply_filters(‘social_author_icons’, $ID); echo $icons;

    This does sound like a nice option, I’ll put it on the short list for upgrades.

    I tried but it returns the article author social links in each comment instead of commenter social links.

    Also tried to display in user info page and link from each comment with this code:
    <a rel="nofollow" href ="<?php bloginfo('url'); ?>/?author=<?php echo $comment->user_id ?>"><?php echo $comment->comment_author?></a>

    Will try more 🙂

    Plugin Author Nick Powers


    Which file did you put it in for comments?

    I’m not sure if this is what you are looking for or not but in the latest version, to be released any day now, I have integrated Google+ so that the author’s Google+ profile image shows in Google search results. It places their Google+ image and a link to their Google+ profile page, along with their social links at the bottom of their author page.


    That’s great news !

    here a commenting example if you have time to take a look:

    Plugin Author Nick Powers


    Send me a username / pw to nick AT nickpowers DOT info if you want me to take a look.

    Plugin Author Nick Powers


    For anyone interested, this was the code that was used to make this work:

    $id = get_comment(get_comment_ID())->user_id;
    if( 0 != $id ) {
    $icons = apply_filters(‘social_author_icons’, $id); echo $icons;

    The only caveat is that the default admin’s comments do not display the icons. This is because comments by users without accounts report as id 0, the id of the default admin account.

    Nick is the man !

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Social Author Bio] Display in users comments’ is closed to new replies.