• ranmza

    (@ranmza)


    Hello,

    I’m using the Fervens – C Theme and I want to know how to add an author avatar on it. Here is the main index code:

    <?php get_header(); ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    
    <!--Start Post-->
    <div class="post" style="margin-bottom: 20px;">
    
    <div class="p-head">
    <p class="p-date"><?php the_time('d') ?> <?php the_time('M') ?>, <?php the_time('Y') ?></p>
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    <p class="p-who">Postado por: <strong><?php the_author() ?></strong> Em: <?php the_category('|') ?></p>
    </div>
    
    <div class="p-con">
    <?php the_content('Leia o resto dessa notícia &raquo;'); ?>
    </div>
    
    <div class="p-com">
    <?php comments_popup_link('Sem Comentários', '<strong>1</strong> Comente', '<strong>%</strong> Comentários'); ?>
    </div>
    
    <?php if (function_exists('the_tags')) { ?> <?php the_tags('<div class="p-tag">Tags: ', ', ', '</div>'); ?> <?php } ?>
    
    </div>
    <!--End Post-->
    
    <?php endwhile; ?>
    <?php include("nav.php"); ?>
    <?php else : ?>
    
    <?php include("404.php"); ?>
    <?php endif; ?>
    
    <!--Track Theme-->
    <?php if (function_exists('trackTheme')) { ?>
    <?php trackTheme("fervens-c");  ?>
    <?php } ?>
    <!--Track Theme-->
    
    <?php get_footer(); ?>

    I want something like this:

    https://www.dsnews.com.br/wp-content/uploads/2011/02/likethis.jpg

Viewing 1 replies (of 1 total)
  • Thread Starter ranmza

    (@ranmza)

    There’s this code

    <?php echo get_avatar( get_the_author_email(), '80' ); ?>

    But i don’t know to to use it.

Viewing 1 replies (of 1 total)
  • The topic ‘Add Avatar on Fervens – C Theme’ is closed to new replies.