Hello! Thanks for reading this blog. You will be redirected to Naruto Shippuuden in 90 seconds.

WordPress Gravatar Plugin for Multiple Authors

I’ve been looking for a Wordpress plugin that provides multi users to show their respective gravatars on their authored posts. Different authors, different gravatars on each post. Unluckily, I have never found one. I don’t know if there exist one for I have minimal access on resources because of f*in WebSense.

Anyway, for me, the simpliest gravatar plugin is the WordPress Gravatar Plugin. It just generates the URL for the source gravatar and it’s up to you where you want to put it on your site. However, the latest available version only supports gravatar for comment authors. What I want is have it to support authors’ gravatars on posts as well.

As I have said “simple”, here’s what I did with the plugin:

  1. Added a parameter that will verify if the function was called from a post or from the comments.

    function gravatar($rating = false, $size = false, $a_post = false, $default = false, $border = false)

  2. Added a global $authordata variable
  3. Used $authordata->user_email if gravatar was called from a post

    $out = "http://www.gravatar.com/avatar.php?gravatar_id=".md5($comment->comment_author_email);
    if ($a_post)
    {
    $out = "http://www.gravatar.com/avatar.php?gravatar_id=".md5($authordata->user_email);
    }
  4. Called the gravatar function on posts
    <img id="gravatar" src="<?php gravatar('R', 40, true); ?>" alt="author's gravatar">

  5. Called the gravatar function on comments

    <img id="gravatar" src="<?php gravatar('R', 50, false); ?>>

Download the original or ask a copy of my version if you want or download it straight if you really want and see the sample here.

  1. jong says:

    still need the plugin? ah wait mo na lang… ok? thanks

    ey. email add po. nalimutan ko eadd mo.. thanks..

    mrnicash gmail ba? hehe sent na

    *comments merged*

  2. mr nice ash says:

    Tanks alut jong.

    and goodluck on your training. ;)

  3. Micheal says:

    Hello,
    Just wondering if anyone could help. I did something stupid and started my blog using a numerical archive system, and now I'd like to change it so that the post title is part of the URL for SEO reasons. Is there any Wordpress plugins that anyone knows of that could switch it without sending Googlers to invalid pages? Maybe some sort of redirector to the correct page?

    Thanks.

  4. mr nice ash says:

    i hope i am getting what you are trying to say…
    I think, doing that may never require a plugin. you can search for some tweaks you can do to your header file maybe.

  5. Brennan says:

    Can anyone give me ideas , i might get free time in the future and want to give it for wordpress …
    any idea ?
    i want idea from simple thing to mid … 1-2 hours –> 8-10 hours .
    post your ideas…

  6. Jayce says:

    Can anyone give me ideas , i might get free time in the future and want to give it for wordpress …
    any idea ?
    i want idea from simple thing to mid … 1-2 hours –> 8-10 hours .
    post your ideas…

  7. Pierce says:

    Can anyone give me ideas , i might get free time in the future and want to give it for wordpress …
    any idea ?
    i want idea from simple thing to mid … 1-2 hours –> 8-10 hours .
    post your ideas…

  8. Weston says:

    Does anyone know the name of the wordpress plugin that creates a list of your posts in a category instead of just displaying them one after the other? I want it so that when someone clicks on a category they just get a list of posts from that category.

    I'm sure Ive seen one…and sifting through the WP site is a nightmare

  9. mr nice ash says:

    Hi Weston,

    Perhaps this is the plugin you’re looking for.

    CleanCat Category Plugin

    CleanCat tidies up your categories. To be more precise, if a user navigates through your categories he’ll always see all the entries from all sub-cats as well. Some people like that, some people don’t. So for the latter there’s now the possibility to simply turn that annoyance off. If the plugin is activated, only postings belonging directly to the category will be displayed in it.

  10. Dennis says:

    What I want to do on my blog, is every few hours take the oldest post and move it to the
    front of the queue, all automatically. Anyone know if there is a plugin that can do this or
    a simple way to set up another plugin to do this (use my own feed perhaps)?
    Thanks.

  11. kurye says:

    great article thank you.

  1. [...] Anyway, this project is a multi-user blog, and as part of it, I installed and customized the WP-Gravatar plugin so that every author will have their gravatar with their posts. I also have installed the Subscribe to comments plugins which went smoothly as I wanted. [...]

  2. [...] Gravatar plugin For Multiple Authors ???????? [...]

  3. [...] 21. WordPress Gravatar Plugin for Authors [...]

  4. [...] O ultimo plugin mostra o gravatar do autor no post. Download do plugin Wordpress Gravatar [...]

  5. [...] WordPress Gravatar Plugin for Authors WordPress [...]

  6. [...] 21. WordPress Gravatar Plugin for AuthorsWordPress ?????? [...]

  7. [...] Gravatar plugin For Multiple AuthorsWordpress plugin that provides multi users to show their respective gravatars on their authored posts. [...]

  8. [...] WordPress Gravatar Plugin for Authors WordPress [...]

Leave a Reply