Do I have to have a nonce for a custom comment field?

A WordPress Nonce, while not a true nonce, functions similarly in that it exists to secure a form or page from unauthorized access and abuse. By default, the WordPress Comment Form only displays a nonce field if the current user has the unfiltered_html capability. So, if the form is implemented with standard procedures, all you … Read more

Does wp_new_comment expect a comment in HTML?

or should this be ‘Tom & Jerry’? It doesn’t really matter. It’s more important to consider if you don’t know where the comment content is coming from. If you’re inserting user input as the comment content then this should be escaped. wp_new_comment() escapes and sanititizes the comment for you. It’s designed to take the user … Read more

Changing position of cancel_comment_reply_link and other elements of comment form

I think your best bet is to take a look at Otto’s post all about the comment form and functions, here: http://ottopress.com/2010/wordpress-3-0-theme-tip-the-comment-form/ If you want to cut to the chase, you can add this function to your functions.php: function my_fields($fields) { $fields[‘new’] = ‘<p>Some new input field here</p>’; return $fields; } add_filter(‘comment_form_default_fields’,’my_fields’); Then set new … Read more

What is the correct/safe way to delete all comments?

Yes. That will be sufficient. And I highly recommend that you activate the Akismet plugin to block spam. Probably if you think there might be any genuine comments in the 13k pending ones, then install and activate Akismet first. Then go to Comments in the WordPress Dashboard, and click on ‘Check for Spam’. It should … Read more

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