Support » Fixing WordPress » Embedding avatar code makes it appear 14 times. why?

  • 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; ?>


  • The topic ‘Embedding avatar code makes it appear 14 times. why?’ is closed to new replies.