Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #524589

    Hi,
    I’m trying to add author avatar to posts list in /config-templatebuilder/avia-shortcodes/magazine.php

    I’m using Easy Author Image to add custom image.

    I tried to add:
    $author_thumb = apply_filters('avf_author_name', get_author_image_url('display_name', $entry->post_author), $entry->post_author);

    and then I called it:

    $output .= $author_thumb;

    But it doesn’t work.

    Do you have any idea how to solve it?

    Thanks.

    #525334

    Hey Mariusz!

    Thank you for using Enfold.

    Please add this below line 545:

    $author_img    = get_author_image_url();
    $author_output .= '<img src="'.$author_img.'" alt="'.$author_name.'"/>';
    

    Place it at the very end of the $author_output. You can add a unique class so that you can style it later.

    Cheers!
    Ismael

    #525762

    Hi Ismael
    Unfortunately it does not work.

    $author_img = get_author_image_url();
    returns no image ;(

    #527763

    Hi,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.