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.
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
Hi Ismael
Unfortunately it does not work.
$author_img = get_author_image_url();
returns no image ;(
Hi,
Can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
Josue