Comment forum to display under the comment you’re replying too

Enqueue the ‘comment-reply’ script. function wpse88530_enqueue_comment_reply() { // Enqueue the comment-reply script on //single blog post pages with comments // open and threaded comments if ( // Returns the value for the specified option. // ‘thread_comments’ is a Boolean option where // comments are threaded if TRUE, and flat if // FALSE get_option( ‘thread_comments’ ) … Read more

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

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

Identify and display the fact that user is admin next to username in comment section

From inside a comment Loop… $author_data = get_user_by(‘login’,$comment->comment_author); if (!empty($author_data)) { var_dump($author_data->roles); } $author_data->roles is an array so you will need to work out what you want to do with that. That is, print them all? Print the highest ranking role? if (array_intersect(array(‘administrator’,’moderator’),$author_data->roles)) { echo ‘admin’; } elseif (array_intersect(array(‘something’,’else’),$author_data->roles)) { echo ‘something else’; }

delete user not working

WordPress should give this option below Attribute all posts to: Anyhow, I wrote a post on this (Clean Comments Table After User Deleted) Edit Also, you can move your all posts from deleted users to admin user. global $wpdb; $admin_id = 1; // Assign admin user id here $posts_table = $wpdb->prefix . ‘posts’; $users_table = … Read more

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