Home Forums Plugin Support WP User Frontend Pro Display Avatar in the sidebar of every post in single.php

This topic is: resolved

This topic contains 6 replies, has 2 voices, and was last updated by  towhid 3 years, 10 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #67371

    Ganesh
    Member
    Post count: 51

    Hi

    I have a field “avatar” in my registration form and the same is working perfectly. I want to display the same user avatar in the sidebar of every posts, ie, in single.php page.

    There is some other fields collected at the time of registration is already displayed here. But I couldn't display avatar/image files.

    Please help asap. I have already one query in pending status.

    Regards

    #67627

    towhid
    Participant
    Post count: 4505

    Hello Ganesh,

    By using the get_avatar() function you can get a user's avatar.

    Please check this link – https://codex.wordpress.org/Function_Reference/get_avatar

    Thanks

    #67703

    Ganesh
    Member
    Post count: 51

    then what about the image files. I am collecting one logo files of shop at the time of registration. shop_logo is the field name.

    I have checked this url for help.. but no positive results.
    http://docs.wedevs.com/showing-meta-fields-in-frontend/#showing-fields-in-the-theme

    please let me know how can i achieve this. I want to display shop logos in the sidebar of single.php

    please reply asap.

    #67780

    towhid
    Participant
    Post count: 4505

    Hello Ganesh,

    Which function you have used to getting the shop's logo from this link – http://docs.wedevs.com/showing-meta-fields-in-frontend/#showing-fields-in-the-theme

    Which custom field you have used to insert the logo?

    Can I get the code you have inserted in the single.php file?

    Thanks.

    #67785

    Ganesh
    Member
    Post count: 51

    Basically I am not a developer. so I couldn't understand the code provided in the page.
    You may please tell me how to do the thing.

    I have a custom image field in the registration form named ‘shop_logo'. I want this to show in the single.php page along with the concerned author's meta fields.

    Please help me to implement the same.

    Regards

    #67964

    Ganesh
    Member
    Post count: 51
    This reply has been marked as private.
    #68289

    towhid
    Participant
    Post count: 4505
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Display Avatar in the sidebar of every post in single.php’ is closed to new replies.