Feed on
Posts
Comments
Email訂閱

*for tag search

modified /wp-includes/query.php function

*for comment display in a single post to descent order(2008.1.23 又改回來了)

1.modified /wp-includes/comment-template.php function comments-template() some SQL statesment as

SELECT * FROM $wpdb->comments WHERE comment_post_ID = ‘$post->ID’ AND (comment_approved = ‘1’ OR ( user_id = ‘$user_ID’ AND comment_approved = ‘0’ ) ) ORDER BY comment_date desc

2.modified theme file -> comments.php commentlist for-loop

<?php $commentcounter = get_comments_number($post->id); ?>

<?php $commentcounter–; ?>

相關文章

留言區