Comment form not supported the image tags

Hi please use below code in your functions.php to allow img tag in comments. For details please follow link wp_kses_allowed_html and for more details please follow trac link add_filter( ‘wp_kses_allowed_html’, array( $this, ‘my_kses_allowed_html_hook’ ), 20, 2 ); function my_kses_allowed_html_hook( $tags, $context = null ){ if ( ‘post’ == $context && ! isset( $tags[‘img’] ) ) … Read more

How to echo PHP after comment form submit?

Native comment form is not posting to the page itself, but away to a special wp-comment-post.php endpoint. That endpoint processes the form submission, then redirects back to the page (which rebuilds with submitted comment if necessary). If you want to echo data at the page at the end of this process you would need to … Read more

How to enable truly anonymous posting in bbPress forums? [closed]

When we post an empty anonymous reply, we get the following errors: The part of BBPress that’s responsible for handling this, is the bbp_new_reply_handler() function, in the file /bbpress/includes/replies/functions.php. It contains these lines that are of interest to us: // User is anonymous if ( bbp_is_anonymous() ) { // Filter anonymous data $anonymous_data = bbp_filter_anonymous_post_data(); … Read more

How to edit comments form on posts?

Check your theme, if it uses template, create a child theme and edit it. If it’s not a part of comment template, edit another part. You can try to find correct place with PsPad, Visual Code Studio or whatever else code editor while typing the phrase and searching in the template/plugin files. If you need … Read more

Comments.php is not getting called on main blog page

Comments can be enabled on the archive page by setting the global variable $withcomments to true before calling comments_template(): global $withcomments; $withcomments = true; comments_template( ”, true ); As Michael pointed out in a comment on the original post, comments_template() does not return output when $withcomments is true, or in a number of other scenarios: … Read more

How do I write this code to not show default on label_submit?

I researched the WordPress Codex some more and analyzed the code I posted here and if you look at the top where it says $form_args, but then in comment_form($forms_args): <?php $form_args = array( ‘label_submit’ => ‘Send’, ‘title_reply’ => ‘Write a Reply or Comment’, ‘comment_notes_after’ => ”, ‘comment_field’ => ‘<p class=”comment-form-comment”><label for=”comment”>’._x(‘Comment’,’noun’).'</label><br /><textarea id=”comment” name=”comment” cols=”45″ … Read more

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