Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter vkmc

    (@vkmc)

    the function mytheme_comment looks like this

    <?php function mytheme_comment($comment, $args, $depth) {
       $GLOBALS['comment'] = $comment; ?>
       <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
    	  <div class="comment-top-left"></div>
    	  <div class="comment-top-main"></div>
    	  <div class="bubble"></div>
    	  <div class="comment-top-right"></div>
       <div id="comment-<?php comment_ID(); ?>" class="comment-body">
          <div class="comment-author vcard">
             <?php echo get_avatar($comment,$size='50'); ?>
    		 <div class="comment-info">
                <?php printf(__('<cite class="fn">%s</cite> <span class="says">dice:</span>'), get_comment_author_link()) ?>
    			    <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),'  ','') ?></div>
    		 </div> <!-- end comment-info-->
          </div>
          <?php if ($comment->comment_approved == '0') : ?>
             <em class="moderation"><?php _e('Su comentario está esperando a ser aprobado.') ?></em>
             <br />
          <?php endif; ?>
    
    	  <div class="comment-content"><?php comment_text() ?></div> <!-- end comment-content-->
    	  <div class="reply-container"><?php comment_reply_link(array_merge( $args, array('reply_text' => __('Responder'),'depth' => $depth, 'max_depth' => $args['max_depth']))) ?></div>
    	</div> <!-- end comment-body-->
    	<div class="comment-bottom-left"></div><div class="comment-bottom-right"></div>
    <?php } ?>
    Thread Starter vkmc

    (@vkmc)

    Hi esmi! Thx for your answer. I have already checked comments.php
    The thing is that my theme calls commentlist like this

    <ol class="commentlist">
    			<?php wp_list_comments(array('type'=>'comment','callback'=>'mytheme_comment','avatar_size'=>50, 'reply_text'=>'Reply')); ?>

    It makes a callback to a function called mytheme_comment, and there it sets the format.

    The problem is that the format setted there is correct (looks the same as the code in the help article of wp_list_comments)

    I really dunno where else to look for it.

    I already tried to skip the callback: just doing the default call to wp_list_comments… but it doesn’t work either

Viewing 2 replies - 1 through 2 (of 2 total)