Tagged: gravatar, Post Format
-
AuthorPosts
-
November 18, 2015 at 3:08 pm #538166
Hi all,
Anybody know a way to show gravatar instead of the format icon on formatted posts?
Seems like this should be normal as in the settings it says, multi user shows gravatar of author.
I like this allot! However, all my posts are formats, gallery, video etc and all it shows then is the icon.Kind regards,
ThomasNovember 19, 2015 at 6:52 am #538752Hi Thomas,
I’m not sure I understand what you mean, could you try to explain a bit further or post screenshots of what you would like to change? Please link to your site as well.
Best regards,
RikardNovember 19, 2015 at 11:36 am #538882ok so here is the example:
http://www.bestebruidsfotograaf.nl/blog/
On this blog all posts are of the format GALLERY
You see the orange circle with the gallery icon on it
My client would like to have his GRAVATAR here instead of that gallery icon
This does show as soon as he sets the format to default, but he dont want default :)This goes for the archive pages and the single pages.
I am also noticing that this icon links to the format archive, kinda strange..
Best case this would be the single article or author archive.You understand?
Kind regards,
Thomas BorkentNovember 19, 2015 at 4:55 pm #539097anybody?
November 21, 2015 at 3:44 am #540050Hi,
Open /includes/loop-index.php and look for:
if($post_format == 'standard') { $author_name = apply_filters('avf_author_name', get_the_author_meta('display_name', $post->post_author), $post->post_author); $author_email = apply_filters('avf_author_email', get_the_author_meta('email', $post->post_author), $post->post_author); $gravatar_alt = esc_html($author_name); $gravatar = get_avatar($author_email, '81', "blank", $gravatar_alt); $link = get_author_posts_url($post->post_author); }
Replace it by this:
$author_name = apply_filters('avf_author_name', get_the_author_meta('display_name', $post->post_author), $post->post_author); $author_email = apply_filters('avf_author_email', get_the_author_meta('email', $post->post_author), $post->post_author); $gravatar_alt = esc_html($author_name); $gravatar = get_avatar($author_email, '81', "blank", $gravatar_alt); $link = get_author_posts_url($post->post_author);
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.