Comment author profile image

I am also interested and after spending hours to test, read source code and some online docs. Finally understand how it is working. And end up the method is easy but not obvious. Not sure how you add the image, you may modify the code to meet your actual situation and here is the WordPress … Read more

Upload avatar for post comment

WordPress doesn’t have built-in profile pictures (Avatars) by default. See Settings > Discussion in the menu for available options. So you may have a few options: Use Gravatar, as this is bundled in WordPress by default and free but would not require a profile image upload button as its managed separately. Look for an Avatar … Read more

Same comment section on every page

With some testing this appears to be achievable with two filters. Firstly you want to set front end queries for comments to query for comments for all posts, instead of just the current post. That can be done like this: add_action( ‘pre_get_comments’, function( $comment_query ) { if ( ! is_admin() ) { $comment_query->query_vars[‘post_id’] = 0; … Read more

Comment Form Development Issue

I resolved the case. Problem here was on &fields variable declaration and also to ‘comment_field’ assignment. I had to change name fields with the correct ones. Check code below: function dck_custom_comment_form() { //Declare Vars $comment_author=”Name *”; $comment_email=”Email *”; $comment_body = ‘Comment *’; $comment_cookies_1 = ‘ By commenting you accept the’; $comment_cookies_2 = ‘ Privacy Policy’; … Read more

Display the list of user’s comments + the post title + date

add this snippet for according your needed: add_shortcode ( ‘show_recent_comments’, ‘show_recent_comments_handler’ ); function show_recent_comments_handler( $atts, $content = null ) { extract( shortcode_atts( array( “count” => 10, “pretty_permalink” => 0 ), $atts )); $output=””; // this holds the output if ( is_user_logged_in() ) { global $current_user; get_currentuserinfo(); $args = array( ‘user_id’ => $current_user->ID, ‘number’ => $count, … Read more

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