WordPress.org

Ready to get started?Download WordPress

Forums

Embedding avatar code makes it appear 14 times. why? (1 post)

  1. stereopoly
    Member
    Posted 6 years ago #

    Heya,
    when trying to embed my freaky avatar code into my author.php, i do see my avatar 14 times or so. For to make it workin i have to put it into the loop and if i do so, it appears that often! is there any tricky thing i can do for to see it just once?

    [...]

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    <span class="avatar"><?php if(function_exists(cmd_show_avatar)) cmd_show_avatar(avatar); ?></span>

    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>

    [...]

Topic Closed

This topic has been closed to new replies.

About this Topic