Disable Link to Post from Showing Up in Post’s Comments?

It sounds like you’re talking about a pingback. You can disable it from Admin|Settings|Discussion. Uncheck Attempt to notify any blogs linked to from the article. Or, you can do it on a post-by-post basis under “Discussion” below the post you’re creating/editing. You might need to enable “Discussion” in the “Screen Options” menu at the top … Read more

show posts from one category with comments only

To retrieve all posts from a category, while preserving the original Loop query, you create a new query like so: <?php $testimonials = new WP_Query( array( ‘post_status’ => ‘publish’, ‘post_type’ => ‘post’, ‘posts_per_page’ => 30, // limit number of posts for which to get ALL the comments of ‘category__in’ => array( 2, 6, 18 ) … Read more

wp_query select if have comments

You might try this: add_filter( ‘posts_where’, ‘filter_where’ ); $query = new WP_Query($args); remove_filter( ‘posts_where’, ‘filter_where’ ); where function filter_where( $where=”” ) { $where .= ” AND comment_count > 0 “; return $where; } to get posts with comments.

display only parent replies count in index.php

Based on this answer I suggest the following code: // the theme’s functions.php /** * Get the number of top level comments for a post. * * @param int $post_id * @return int */ function wpse_95242_top_level_comments_for_post( $post_id = NULL ) { if ( NULL === $post_id ) $post_id = get_the_ID(); if ( ! $post_id ) … Read more

Comment moderation with disqus comments

Disqus pre-moderation rules are set on http://disqus.com/admin/settings/ and can’t be administered via WordPress. Currently there are only options to pre-moderate all comments, or comments from unverified users globally. If you wanted this kind of granularity, you can always register a new Disqus shortname (which is a container for all of your comments/settings) and install the … Read more

Comment Blacklist

I just did a quick test and the comment blacklist appears to be ignored for logged in administrators (possibly other roles). It does effectively block comments when logged in as a subscriber. I suspect that that is the behavior you are seeing.

Can I use WP comments for custom tables?

You could create a hidden dummy post and use always its post ID as comment_post_ID. Then use a comment meta field to store the related ID from your custom table. The other, and probably better option: use custom post types, not tables if you need something that acts like a post. Register that post type … Read more

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