Disqus comment system not show
Ensure you have followed the settings that have been recommended in WpDiscuz Comment Display Settings
Ensure you have followed the settings that have been recommended in WpDiscuz Comment Display Settings
The way you’re adding parameters to the url isn’t working. The ajax request is designed to prevent parameter insertion like this. I recommend you kick off another ajax request to handle this process rather than trying to hook into the existing process in this way. For example, you can kick off your modal window after … Read more
This will helpful for you…. https://crunchify.com/how-to-remove-url-website-field-from-wordpress-comment-form/ https://justlearnwp.com/remove-website-url-wordpress-comment/
How can I enable comments on category page but not home page?
comment_post hook pass to attached functions 3 parameters. The fourth parameter of add_action() indicates to how many parameters the attached function will be able to access. add_action( ‘comment_post’, ‘save_chbox_in_db’, 10, 3 ); function save_chbox_in_db( $comment_ID, $comment_approved, $commentdata ) { $post_id = (int)$commentdata[‘comment_post_ID’]; // // other code // }
Please try this and inform me what you got in the console. and sure console.log the type add_action( ‘wp_ajax_comment_meta_update_vote’, ‘comment_meta_update_vote’ ); function comment_meta_update_vote( ) { check_ajax_referer( ‘upvote_nonce’ ); $comment_id = $_POST[‘comment_id’]; $vote_score = get_comment_meta($comment_id , ‘vote’, true); $vote_score++; $updated = update_comment_meta($comment_id , ‘vote’, $vote_score ); if($updated){ $msg = ‘success’; }else{ $msg = ‘failed’; } $response … Read more
How to add inside WordPress comments loop?
You should be able to start your function with global $post;. Then, your $args would look like this: $args = array( ‘post_id’ => $post->ID, ‘order’ => ‘ASC’ );
After looking at the wp_list_comments() and Walker_Comment sources I would assume the callback is what the Walker uses to render single comments. And the callback recieves three parameters $comment, $args, $depth when the Walker calls it. Based on this, I assume you should be able to just push custom key-value pairs to your $args array … Read more
This is because you’re collecting the HTML in a variable before you output, but comment_form does not return HTML, it immediatley renders. So, eliminate the $achievement_post variable, and output directly with echo instead, and things will work more as you expect