This topic created in 5146 days ago, the information mentioned may be changed or developed.
谷歌到这段代码实在调不通。请高手指点。
<?php $querystr = "
SELECT *
FROM $wpdb->comments
WHERE $wpdb->comments.comment_author = '".$curauth->user_login."'
AND comment_approved = '1'
ORDER BY comment_date DESC";
$results = $wpdb->get_results($querystr, OBJECT);
$i=0;
foreach ($results as $comment) :
?>
<?php echo $results[$i]->comment_content; ?>
<?php $i++; endforeach; ?>