get_avatar() Returning a Number

your code will pretty much produce errors like missing ; at the end this code for example <?php esc_url( the_author_meta( ‘user_url’ ) ) ?> the correct code should be <?php echo esc_url( get_the_author_meta( ‘user_url’ ) ); ?> or <?php the_author_meta( ‘user_url’ ); ?> Why does the author ID number appear? The number that appears above … Read more

How can I filter the user avatar displayed in comments? – get_avatar_url filter works everywhere but not in comments

By default, wp_list_comments() uses the get_avatar() function to display user avatars, which in turn retrieves the avatar URL from Gravatar. However, get_avatar() also applies the get_avatar_url filter before returning the URL, so you can modify the avatar URL for the comments by using that filter. Here’s an example of how you can modify the avatar … Read more

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