• Hi everyone!

    I’m having a problem separating my pingbacks from my comments on my posts, due to the fact that my theme doesn’t seem to be using the standard “wp_list_comments” function.

    I’m using the latest 2.9.x version.
    this is an excerpt from my comments.php file:
    What could be done here? (Sorry if it’s a bit long, not sure about where the interesting area is)

    ———————————————————————-

    <ol class=”commentlist”>
    <h3 class=”comments”><?php comments_number(‘No Responses’, ‘One Response’, ‘% Responses’ );?> to “<?php the_title(); ?>”</h3>

    <?php foreach ($comments as $comment) : ?>

    <li <?php echo $oddcomment; ?>id=”comment-<?php comment_ID() ?>”>
    <cite><?php comment_author_link() ?></cite> Says:
    <?php if ($comment->comment_approved == ‘0’) : ?>
    Your comment is awaiting moderation.
    <?php endif; ?>

    <small class=”commentmetadata”>” title=””><?php comment_date(‘F jS, Y’) ?> at <?php comment_time() ?> <?php edit_comment_link(‘edit’,’  ‘,”); ?></small>

    <?php comment_text() ?>

    <?php
    /* Changes every other comment to a different class */
    $oddcomment = ( empty( $oddcomment ) ) ? ‘class=”alt” ‘ : ”;
    ?>

    <?php endforeach; /* end for each comment */ ?>

    —————————————————————

    Thanks a lot!

    https://www.caputmundicibus.com

  • The topic ‘Separate pingbacks from comments – Custom Theme’ is closed to new replies.