Jetpack Comments with fall-back
For anyone who may be interested, I think I may have found a solution – this tutorial outlines how to customize comment_form(), Jetpack will simply override the styles set.
For anyone who may be interested, I think I may have found a solution – this tutorial outlines how to customize comment_form(), Jetpack will simply override the styles set.
to remove it from the left. Delete the line containing wp_list_comments from comments.php to display user name add comment_author();, for email use comment_author_email(); & for url use if(get_comment_author_url()) comment_author_url();. comment_text() is already there. These all go in the markup inside the function in functions.php
It depends on how your theme is built & we can’t be 100% sure if this is right without seeing the code but most probably comments_template is the wrong function. Take a look at the comment_form function http://codex.wordpress.org/Function_Reference/comment_form comments_template is the function generally used to include the comments file(basically to display the contents of comments.php, … Read more
Just change to to address for these emails. Sample code, not tested: // hook in late, to avoid side effects. add_filter( ‘comment_notification_headers’, ‘wpse_73855__change_comment_notify_to’ ); function wpse_73855__change_comment_notify_to( $input ) { if ( ‘comment_notification_headers’ === current_filter() ) { add_filter( ‘wp_mail’, __FUNCTION__ ); return $input; } $input[‘to’] = get_option( ‘admin_email’ ); remove_filter( current_filter(), __FUNCTION__ ); return $input; }
DISCLAIMER : Not a WordPress Developer, Just a MySQL DBA If you have privileges to login to MySQL and query data you could collect all the comment_ID values that have one word. SELECT comment_ID FROM wp_comments WHERE REPLACE(TRIM(comment_content),’ ‘,”)=TRIM(comment_content); You can test this by also seeing the comment_content SELECT comment_ID,comment_content FROM wp_comments WHERE REPLACE(TRIM(comment_content),’ ‘,”)=TRIM(comment_content); … Read more
You might want to check out the comments_array filter. In 3.5, it is applied in Line 891 of wp-includes/comment-template.php: $wp_query->comments = apply_filters( ‘comments_array’, $comments, $post->ID );
Just pass the user id to this function: function get_role($user_id) { if(is_int($user_id)) { $user = new WP_User( $user_id ); if ( !empty( $user->roles ) && is_array( $user->roles ) ) { foreach ( $user->roles as $role ) echo $role; } } else echo “Something else”; }
In order to do what you are asking, there first needs to exist an anonymous user. Assuming this user exists, there are just a few steps: 1) modify the comment form to include the anonymous check box. 2) detect whether the box is checked. 3) if the box is checked, use the comment_save_pre filter to … Read more
Figured it out. Looking at wp-comments-post.php there is a filter called comment_post_redirect which I used to check if the comment was approved and then added a query string to the URL. So easy. //A query string needs to be added when redirecting back to the post after a comment is posted and not approved. This … Read more
Add style=ol to your call to wp_list_comments. Reference: http://codex.wordpress.org/Function_Reference/wp_list_comments#Parameters