Support

BT Extended and author image (5 posts)

Languages

de | fr | es | 日本語

About This Topic

Tags

  1. rss phillwv

    junior member


    rss Posted 3 years ago
    #

    Hello Milo

    In BTe is there a suggested way to upload author images (like with lead images)?

    I ask because I don't want to override some method I've missed (or misunderstood) by 'hard-coding' the path, for example.

    Ta, Phil

  2. rss phillwv

    junior member


    rss Posted 3 years ago
    #

    Adding note: again, I might be missing the obvious (in WP) but cannot find anywhere in WP user profile to add 'avatar' that would be likely image to use.

    Hope this makes sense.

  3. rss milo

    moderator


    rss Posted 3 years ago
    #

    It's much easier, this lines

    <?php bloginfo('template_url'); ?>/images/<?php echo $curauth->nickname; ?>.jpg

    indicate that your displayed author name is used as your image name, i.e. your displayed author name is BOB, then you have to create an image called bob.jpg (max 130px X 130px) and upload it to the "themes image folder", then it will show auto.

    Same wourld work for each new author.

  4. rss phillwv

    junior member


    rss Posted 3 years ago
    #

    Thanks so much. In retrospect I realise the answer was staring me in the face - emails arriving from the test blog with subject line:

    "Bad Link To /wp-content/themes/BTextended/images/The%20Editor.jpg" :0)

    Please excuse us dummies, we have day jobs far removed from all this.

  5. rss milo

    moderator


    rss Posted 3 years ago
    #

    Ahh, no prob, glad I clould help =)

    Note: WP has sometimes probs with display name, when the author name was/is changed.
    You can use the user login name to avoid issues like so:

    <?php bloginfo('template_url'); ?>/images/<?php $curauth->user_login; ?>.jpg

    then use the user login name (i.e. rose) as a reference like so: rose.jpg

Reply

You must log in to post.

Design by milo

Milo designs web sites that strike the perfect balance between professional high-class graphics, functionality, usability, user experience, and high performance.