Displaying the author avatar

Home Forums Calendar Products Events Calendar PRO Displaying the author avatar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1088606
    oneguy
    Participant

    Hi there.
    I’m using buddypress and instead of organizer I’m using the authors for displaying the image for the organizer.
    I use this code –

    <?php echo get_avatar( get_the_author_meta(‘ID’), 120); ?>

    It’s working in the photo – single-event.php
    But when I’m using it in single-event-php – as in the single event display – i get only the mistery man and not the author image.
    Any ideas?
    Thanks
    Guy

    http://www.funrais.social/event/adobe-user-group-meeting/

    #1088885
    Cliff
    Member

    Hi. I’d suggest referencing https://codex.wordpress.org/Using_Gravatars#Checking_for_the_Existence_of_a_Gravatar

    You can test things with var_dump() too.

    I hope you get things working with your customization. Please let me know how it goes.

    #1088940
    oneguy
    Participant

    Thanks 🙂
    Will look into it!

    #1089217
    Cliff
    Member

    Sounds good. Let me know how it goes!

    #1095959
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Displaying the author avatar’ is closed to new replies.