• Can anyone tell me the short code to display the social media icon in the author page?
    Also currently as per my understandin we dont have short code to display the designation of the author, how can i achieve that?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Paul Bearne

    (@pbearne)

    Hi

    The problem is where is the data for the social media links saved for a given user. there is no standard way to do this so I can’t code this into the plugin. it is possible to extent the plugin to fetch them but this requires custom code.

    What do you mean by “designation”?

    Paul

    Thread Starter hariprasad1311

    (@hariprasad1311)

    designation is like,
    example:
    Hariprasad
    Web designer

    also when i use the short code to display the author picture, its getting blurred.
    i use 230 size. can you please help me with that.

    Plugin Author Paul Bearne

    (@pbearne)

    where do you store the designation in WP?

    I don’t manage the author picture just call the avatar from the WP code if is blurred it likely due to css.

    Paul

    Thread Starter hariprasad1311

    (@hariprasad1311)

    in your short code you have an option to mention the size of the avatar “avatar_size”
    when i use this to scale up the image, it gets blurred. so is there an option to increase the size of the avatar in wordpress itself?

    I have used one more plugin “stylish author bio” there we have an option called profession, also it lets me to include the social media icons, its like the designation.

    Plugin Author Paul Bearne

    (@pbearne)

    how are you uploading the avatars? we pass the size to the get_avatar call which added it to the URL to fetch the image so it should get scaled

    I will need to look how the stylish author bio is coded to see if I can support the extra fields. ( over the holidays i hope)

    Thread Starter hariprasad1311

    (@hariprasad1311)

    uploading the image also happens through, stylish author bio plugin. is there any default method to upload the author avatar?

    thanks a lot… happy holidays ??

    Plugin Author Paul Bearne

    (@pbearne)

    Hi

    I have had a look at the plugin and it possable to create code to add the social icons.

    But I am not going to add it the plugin as the plugin is not been used by many sites (20) so the effort to reward is too low. I have suggested to the plugin author that he might like to add support into his plugin

    Otherwise if you wish to add support yourself look at this file to see how to add to the list output

    You will need to set the global author and include or copy this file https://plugins.trac.www.ads-software.com/browser/stylish-author-bio/trunk/includes/author-social-media.php from author bio along with css

    If you copy the code you can use the user that I pass in the filter ‘aa_user_display_extra’ rather than setting the global author witch would be better.

    If you do add support I would look at taking a pull request to add it to the plugin

    Paul

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Short code to display social media icons & designation’ is closed to new replies.