In the BrightBox Latest News Widget (newsbox), how can I change the display picture to call the author avatar instead of the featured image in the post?
BrightBox Latest News - show author avatar?
2 posts from 2 voices-
Posted 1 year ago #
-
Hey,
I can give you hints for this modification:
In brightbox\framework\php\class-framework-widgets.php search for
echo "<a class='news-link' title='".get_the_title()."' href='".get_permalink()."'>"; echo "<span class='news-thumb'>"; echo $image;and replace
echo $image;with any code you like. I.e. you can use this function: http://codex.wordpress.org/Function_Reference/get_avatar to retrieve the avatar. Before you need to get the author email, etc.
Posted 1 year ago #
Reply
You must log in to post.














