Using Disqus, how to stop storing comments in wp database?

The disqus plugin synchronizes your WordPress comments with the disqus system — that’s it’s main purpose (own your own comments, etc). You can get around this by ditching the built in WordPress commenting system altogether, modifying your theme templates (probably just comments.php) to use the stand-alone disqus javascript. <script type=”text/javascript”> var disqus_shortname=””; // required: replace … Read more

Allow guests comments on single post

That sounds like a useful feature. To get what you need you have to change three things: Add a checkbox to enable anonymous comments per post. Save the checkbox value together with the post. Filter the checks for the comment registration requirement on the post views to enable the comment form and on the actual … Read more

How to get comments with mixed status using get_comments?

As of the WordPress codex there is no such option. But you could just combine two or more comment arrays using plain PHP: array_merge( get_comments( array( ‘status’ => ‘hold’ ) ), get_comments( array( ‘status’ => ‘trash’ ) ) ); http://codex.wordpress.org/Function_Reference/get_comments http://php.net/array_merge

How to show Disqus comment count number only without text?

Not sure how it’ll behave with Disqus, but try the following filter: add_filter( ‘comments_number’, ‘comments_text_wpse_87886’, 10, 2 ); function comments_text_wpse_87886 ( $output, $number ) { return $number; } The original return is $output, and instead we are returning only the number of comments. That filter happens in the following core function, reproduced here if you … Read more

Custom comment status possible?

Quick answer: no. There is not a built-in function to create a new comment status. The status of a comment (or a post/page/attachment/etc) contains wide-spread implications thoughout your WordPress install, so you couldn’t just add one somewhere quickly. I’m not exactly sure what you’re trying to accomplish by adding this new “status”, but I think … Read more

Is there any advantage to emptying comment spam?

There is definitely a performance advantage in keeping your comment spam to a minimum. If you have a lot of comments, the query time can get pretty out of control. To make it easier, you should install Akismet if you haven’t already. Akismet will automatically detect spam comments and move them to WordPress spam section. … Read more

How can I edit the email sent when a new comment is received?

The comment_notification_text filter is in wp-includes/pluggable.php in the wp_notify_postauthor function. You can copy and paste the $notify_message stuff and edit out what you don’t want. function wpd_comment_notification_text( $notify_message, $comment_id ){ // get the current comment and post data $comment = get_comment( $comment_id ); $post = get_post( $comment->comment_post_ID ); // don’t modify trackbacks or pingbacks if( … Read more

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