## Share comment area across multiple posts?

Question
Rather than have a comment section associated with a post, I'd like it associated with the entire category. That way, I can have some related posts all sharing the same comment thread. Any hints on how I might go about accomplishing ...
0
2 hours 0 Answers 1 views

## Custom comments list, right depth

Question
I created a custom comments_list() function, it works fine, the only problem is to show child comments inside the parent div. It works well with first and second depth levels but not for others. This is my code: /* ----------------------------------------------------------------------------- * Comments ...
0
3 days 0 Answers 15 views

## WordPress admin bar showing pending comments which cannot be selected or modified after deleting parent page

Question
My Wordpress admin interface shows there are 4 pending comments, but I've already approved three and deleted one of them via Disqus comment moderation page, but the page they were posted on was later deleted. I then posted two comments ...
0
2 weeks 0 Answers 18 views

Question
comments_open is used for both post types, posts and products, the snippet below worked and allowed only (example) role users to comment enter code here add_action( 'init', function(){ $u = wp_get_current_user(); if($u->exists() && in_array( 'example', (array) $u->roles, true ) ) return; add_filter( 'comments_open', ... 0 2 weeks 0 Answers 23 views ## How to display comments length Question i used this code for Limit Comment Length: add_filter( 'preprocess_comment', 'wpb_preprocess_comment' ); function wpb_preprocess_comment($comment) { if ( strlen( \$comment['comment_content'] ) > 5000 ) { wp_die('Comment is too long. Please keep your comment ...
0
2 weeks 0 Answers 25 views

## Remove link preview in discussion dashboard

Question
It can be sometimes bothersome when, in the Discussion (Comments) dashboard, where the admin can see a list of comments, moving the mouse over a link will cause a preview of that link. Sometimes the preview gets in the way ...
0
2 weeks 0 Answers 23 views

## How to prevent spams from admin-ajax.php file?

Question
I noticed today that a spammer is posting comments on my website using the admin-ajax.php file. Does this mean that my website is hacked? If it is not hacked, how can I prevent that person from posting spam comments using this ...
0
2 weeks 0 Answers 26 views

## How to remove these comments and html tags from the content?

Question
These are actually input fields. paragraph is the textarea field. i query the contents from database and try to show them in this textarea field. But the textarea field is showing me unwanted comments ...
0
3 weeks 0 Answers 27 views

## How do I automatically insert some text in the comment textbox on submit?

Question
So, you can't submit a comment without adding some text... So, how do I automatically insert some text in the comment textbox on submit (even if I haven't added any text myself)?
0
3 weeks 0 Answers 30 views

## wp_new_comment requires author url and author email

Question
I am using the wp_new_comment() (previously used the wp_insert_comment()) function. I now notice that I get a Notice: Undefined index: comment_author_url and a: Notice: Undefined index: comment_author_email in the wp-includes/comment.php file. Previously, when using wp_insert_comment() I left these fields in the ...
0
3 weeks 0 Answers 33 views