Facebook comment url is unreachable

i’ve figured out the problem of the issue in my blog, it might help others too. I had lazy load installed and when Facebook tried to read the website, it reads it partially so it cause ssome sort of an error: Partial Content The server is delivering only part of the resource due to a … Read more

custom comment_form fields not displaying

I think you’re a bit confused about how comment_form works. So let’s take a look (this is in wp-includes/comment-template.php): <?php function comment_form( $args = array(), $post_id = null ) { // snip snip $fields = array( ‘author’ => ‘<p class=”comment-form-author”>’ . ‘<label for=”author”>’ . __( ‘Name’ ) . ‘</label> ‘ . ( $req ? ‘<span … Read more

Returning error upon comment being flagged as spam

This is how I’ve handled passing messages back to the user before: within your current function, set a transient with your message: set_transient( ‘admin_notice’, ‘Please put down your weapon. You have 20 seconds to comply.’ ); Then add a new hooked function: function admin_notices() { $notice = get_transient( ‘admin_notice’ ); if ( $notice ) { … Read more

Change Twenty Twelve’s comment form in a child theme

You can use filters in custom functions to modify the default output of the comments form via your child themes functions file. Modify the comment form “Leave a reply” text. add_filter( ‘comment_form_defaults’, ‘wpsites_modify_comment_form_title’ ); function wpsites_modify_comment_form_title( $defaults ) { $defaults[‘title_reply’] = __( ‘Leave a Comment’ ); return $defaults; } Remove The Website URL Field From … Read more

Create customized captcha field to wordpress comment form without Plugin

Check out the default comment-template.php file: wp-includes/comment-template.php You will need to replace the arguments: $defaults = array( ‘fields’ => apply_filters( ‘comment_form_default_fields’, $fields ), ‘comment_field’ => ‘<p class=”comment-form-comment”><label for=”comment”>’ . _x( ‘Comment’, ‘noun’ ) . ‘</label><textarea id=”comment” name=”comment” cols=”45″ rows=”8″ aria-required=”true”></textarea></p>’, ‘must_log_in’ => ‘<p class=”must-log-in”>’ . sprintf( __( ‘You must be <a href=”https://wordpress.stackexchange.com/questions/174775/%s”>logged in</a> to post … Read more

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