See some statistics about the comments

For most commented posts you can use a custom loop in the sidebar for example: <h3>Most Commented Posts</h3> <?php $most_commented = new WP_Query(‘orderby=comment_count&posts_per_page=5’); if($most_commented->have_posts()) : ?> <ul class=”most-commented-posts”> <?php while($most_commented->have_posts()) : $most_commented->the_post(); ?> <li><a href=”https://wordpress.stackexchange.com/questions/38006/<?php the_permalink() ?>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?> (<?php comments_number(‘0′,’1′,’%’); ?>)</a></li> <?php endwhile; ?> </ul><!– most-commented-posts –> <?php endif; wp_reset_query(); … Read more

Engadget Like most commented plugins

You could use a plugin like http://wordpress.org/extend/plugins/wordpress-popular-posts/ to get a widget based on popular posts (I’ve never personally used that one) or write your own. Everything else is just HTML markup and CSS.

Problem with comment box

Make sure your header.php file has this before the wp_head function: <?php wp_enqueue_script( ‘comment-reply’ ); ?> Note: Some themes may use the comment-reply function in the themes function.php file. Caution: I’ve scanned your theme and I notice it’s using an outdated version of TimThumb which is a serious security flaw. You can install the TimThumb … Read more

How to get post id of last approved comment?

<?php $recent_comments = get_comments( array( ‘number’ => 1, ‘status’ => ‘approve’ ) ); foreach($recent_comments as $comment) : $latest_postid_with_comment = $comment->comment_post_ID; endforeach; ?> Probably way to compress this code into something smaller. But this will work.

How do I make Twenty Ten display comments on the home page?

This is something works for me. See if it works for you. Here are step-by-step instrucions: STEP-1 In your theme’s loop-single.php, look for this: <?php comments_template( ”, true ); ?> Replace it with this: <?php global $withcomments; $withcomments = 1; comments_template( ”, true ); ?> STEP-2 Create front-page.php with this content: <?php /** * The … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)