ive been playing with this issue some more in the last few days and i found that its rather tricky to show pingbacks on a page. or am i doing something wrong?
for the comments on articles i use:
<ol class="commentlist">
<h3 id="trackbacks">Trackbacks/Pings</h3>
<?php foreach($comments as $comment) { ?>
<?php if(get_comment_type() != "comment") { ?>
<li class="<?php echo $oddcomment; ?> smaller" id="comment-<?php comment_ID() ?>">
<cite><?php comment_author_link() ?></cite>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) {
$oddcomment = '';
} else {
$oddcomment = 'alt';
}
}
}
?>
Which works quite nice. But when i use this exact piece of code on a page template it wont show up.
At first i thought i was wrong and there is no pingback, but when i look in the database there really is one. linking to that page.
i tried leaving out <?php if(get_comment_type() != "comment") { ?>
or changing it: <?php if(get_comment_type() == "pingback") { ?>
But it didnt work.
Anyone got an idea?