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

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 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

How do i remove approved spam comments by date?

Unfortunately, WordPress does not provide any functions to select comments by date range, as far as I know. And although you could wp_delete_comment in a loop, it would take unnecessarily long. As the WordPress database entity relationship diagram shows, comments are limited to being in the wp_comments table and the wp_commentmeta table, which is convenient. … Read more

Give subscribers the option to post anonymously

You can allow anonymous comments in WordPress in wp-admin/options-discussion.php: Just do not check Comment author must fill out name and e-mail. There is a small usability catch: Sometimes users may just forget to fill in their data. I have added a small JavaScript confirm message box asking if they really want to send as anonymous … Read more

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