Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I see plenty of tutorials for much older versions of WP online, but cannot find one for 3.4.2 to separate comment content and the author's avatar/gravatar.

I'm seeking a code that separates the actual comments content from the gravatar and does so in the simplest way possible, I'd rather not update comments.php every time there's an update to the WP core. Is there a simple way to do this with wp_list_comments? I'm doing this for design purposes.

This is how I currently call avatars:

<?php wp_list_comments('avatar_size=60'); ?>
share|improve this question

1 Answer 1

up vote 0 down vote accepted

Ok, so this is what I've done. If anybody has a better idea I will leave the answer open for a few hours and choose it!

<?php if($comments) : ?>  
    <ol>  
    <?php foreach($comments as $comment) : ?>  
        <li id="comment-<?php comment_ID(); ?>">  
            <?php if ($comment->comment_approved == '0') : ?>  
                <p>Your comment is awaiting approval</p>  
            <?php endif; ?>
<cite class="fn"><?php comment_author_link(); ?> on <?php comment_date(); ?> at <?php comment_time(); ?></cite>  
            <?php comment_text(); ?>  

        </li>  
    <?php endforeach; ?>  
    </ol>  
<?php else : ?>  
    <p>No comments yet</p>  
<?php endif; ?>  
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.