comment-reply.js always focuses on comment textarea

This is just good user experience (UX): When someone clicks on Comment or Answer, they have started writing their comment already in their mind. Don’t break that flow with secondary fields. This the reason why you should move the textarea to the top. To change that, you could listen to document changes, check the comment … Read more

Where is the Leave a Comment link set

Some plugins and I guess themes save the initial URLs and paths in their configuration files. If you checked the DB and especially the options table and haven’t found their any mention of the old domain, then you should also search for it in the source files. It is probably best to simply download the … Read more

Adding restrictions to open comments

All you need is to simply check if the entered name or email matched any admin accounts before the comment is saved. function restrict_admin_names() { if ( !is_user_logged_in() ) { $name = $_POST[‘author’]; // Get Submitted Name $email = $_POST[’email’]; // Get Submitted Email $admins = get_super_admins(); // Get an array of admin login $adminemail[] … Read more

Front End User(bloger) turn on and off his comments

you should do something like this //For update a page when use costum template $post = get_the_ID(); $my_post = array( ‘ID’ => $post, ‘comment_status’ => ‘open’ // closed ); // Update the post into the database wp_update_post( $my_post );

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