Skip to:
Content
Pages
Categories
Search
Top
Bottom

Avatar of the man and woman


  • lanvalencia
    Participant

    @lanvalencia

    Hi

    Do you know any plugin that i can to put one avatar for woman and one avatar for man because now i have one avatar for both, the same avatar and i want different avatar for woman and man. Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)

  • Henry Wright
    Moderator

    @henrywright

    Do you capture gender from your users?


    lanvalencia
    Participant

    @lanvalencia

    Yes


    Henry Wright
    Moderator

    @henrywright

    In that case you need to get that value from your database, and then use it inside a function to filter the default image URL.

    if ( $value == 'M' ) {
        $url = ''; // Set the URL to the male avatar.
    } else {
        $url = ''; // Set the URL to the female avatar.
    }
    return $url;

    lanvalencia
    Participant

    @lanvalencia

    It is not possible have a plugin? because i would like to have a plugin where i can put one avatar to man and another avatar of woman, my site is llename.com.


    lanvalencia
    Participant

    @lanvalencia

    I would like one plugin that make me this, one plugin that a i can put one avatar of man and one of woman because i do not know change in database.


    Henry Wright
    Moderator

    @henrywright

    I’m not aware of a plugin that’s available that will let you do this. Maybe someone else here will know of one?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar