Critical error – can’t post comments
Critical error – can’t post comments
Critical error – can’t post comments
Sort post comments from newest to oldest in pagination
Why the internal link get converted into a comment?
comment_notification_text filter not working
I’m sure the problem is in this line of code, since it ALWAYS return 1: $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; Yes, that’s correct. And to retrieve the page number of the current comments page, where the URL contains the /comment-page-<number>, use get_query_var( ‘cpage’ ) and not get_query_var( ‘paged’ ), i.e. the query var … Read more
Insert ads between comments
WordPress comment processing . Default unapproved comments detection before posting
show comment with statuse
This bit of code will update the comment_post_ID with the value submitted using your custom form. function wpse405448_update_comment( $comment_ID, $comment_approved, $commentdata ) { if ( isset($_POST[‘acf’][‘field_6278d64aecf19’]) && !empty($_POST[‘acf’][‘field_6278d64aecf19’]) ) { $comment_post_id = intval($_POST[‘acf’][‘field_6278d64aecf19’]); $com_arr = array( ‘comment_ID’ => $comment_ID, ‘comment_post_ID’ => $comment_post_id, ); wp_update_comment($com_arr); } } add_action( ‘comment_post’, ‘wpse405448_update_comment’, 10, 3 ); Make sure both … Read more
The solution to the issue of slow queries on a site that has a very active comment ‘gang’ (there are over 150K comments on that site, with about 50-100 added each day) (sort of a long answer, but the details might help others): The first step was to ask the hosting company to move the … Read more