Hi
ich habe mir folgendes gebastelt:
PHP
<table border="0">
<?php $comments = $wpdb->get_results("SELECT comment_post_ID, comment_author, comment_author_email, comment_content, comment_date
FROM $wpdb->comments
WHERE comment_type = ''
&& comment_approved = '1'
ORDER BY comment_date
DESC LIMIT 25"); ?>
<?php $commenttype = 'even';
foreach($comments as $comment) {
$post = get_postdata($comment->comment_post_ID); ?>
<tr>
<td>
<?php echo $comment->comment_author; ?> zu <a href="<?php echo get_permalink($post['ID']); ?>"> <?php echo $post['Title']; ?></a>
</td>
</tr>
<?php if($commenttype == "even") { $commenttype = "odd"; } else { $commenttype = "even"; } ?><?php } ?>
</table>
Alles anzeigen
Das zeigt mir alle letzten Kommentare an. Ist ne nette Sache. Leider tauchen hier keine Trackbacks auf.
Weiss jemand wie ich nur die Tracksbacks anzeigen lassen kann?
Vielen Dank
Dennis S.