You are doing it correctly.
The call to gravatar.com passes the location of your custom image so that WP can load it. Take a look at the query string in the src, you’ll see your image location. That’s how it works.
Related Posts:
- Replace comment avatars and links at the same time
- get_avatar won’t show uploaded avatar, only default gravatar
- WordPress Gravatar filter is removing my custom attributes
- Gravatar image url is wrong?
- How to get User Avatar Image with link to Author and User name in Html Title tag?
- Show custom default avatar instead of gravatar
- How does printf( __( ) ); work?
- Displaying Logged-In User Name in WordPress Menu
- How to set custom cookies before output
- Change the filename format of saved featured images
- How to use wp_insert_user on WordPress Multisite?
- How to loop over custom fields in a page template?
- wp_delete_post deletes all posts instead of just expired ones
- How to sort results from a custom database table
- How to get the term before the last from a custom taxonomy?
- Add/echo div with Analytics-Code to function in functions.php
- Strip Image Classes from HTML Output
- Additional image sizes are not being generated
- Problem with WordPress Ajax form
- admin-ajax.php responding with 0
- Deregister and Dequeue Stylesheets From a Plugin and Enqueue a Child’s Stylesheet/s
- How to use return in my custom function instead of echo
- Validate Uploaded Image using WordPress’ Built-in Functions?
- Strange wordpress slowness
- $wpdb->flush(); breaks the loop
- Global variable $post returning incorrect object
- how to make separate field in wordpress user_data_
- Proper syntax or method for keeping url in modified isotope / category links
- Gutenberg block – Save PHP function’s output as HTML?
- Custom search results page not working with empty search
- Which hook/action will help me solve my problem?
- Tax query in pre_get_posts not working
- Programmatically inserting post through URL – when including wp-load.php, it’s redirecting to wp-admin/install.php
- curl_exec causes timeout on mod_fcgid
- Accessing WPDB Multidimensional JSON Array w/ Javascript
- Fatal error: Call to a member function query() on a non-object
- How to replace file_get_contents() with a WordPress Filesystem call
- Warning: Attempt to read property “ID” on null in D:\xampp\htdocs\yba\wp-content\themes\young-brand-child\functions.php on line 162 [closed]
- Remove dash from blog title wordpress
- Problem with AJAX in wordpress plugin
- Include text in echoed hyperlink
- set post limit at load more ajax wordpress
- Trouble inputting variable into WP query
- Why my loop isn’t working? [closed]
- How to use AJAX to call php page with parameter
- My website is not showing Footer section
- WordPress meta_query >= &
- Change header on pages displaying taxonomy items
- Listing titles and custom fields of entries within subcategories
- WordPress site with embedded menu – gives You don’t have permission to access /wp-content/themes/xxx/taxonomy-redirect.php on this server
- Must filter functions receive all arguments passed to them?
- Prevent Company Name From Translating
- Displaying Slider in Front Page (home) using Customizr Theme
- Usage of var keyword in the core
- How to add PHP pagination to wordpress
- Ajax URLs without #!, how to prevent falling into single.php on load or reload?
- PHP displaying wrong custom taxonomy images
- Slow site initial load time
- MySQL Query Returns Array () In Shortcode
- array wordpress when get is null
- Custom search query on WordPress page not working
- PHP session not staying alive. headers already sent
- how can I call a function when time expire
- Google CSE Malfunctions via Chrome/Safari on Mobile When Clicking on Either Search Icon/Menu Icon. How to Make Google CSE Default Theme Search
- Can an AJAX callback function access a PHP variable which was defined during initial page load?
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- Get Child of Child Pages in custom Menu
- Latest posts feed with a specific post always first
- Filter by Post Type
- WordPress Post undefined error with Post Date (New to Wordpres Dev)
- Move Jquery.js to Footer
- Updating the database after parsing CSV document
- Need help to create WordPress page that decodes a text file and publishes it in JSON format
- My blog posts section seems to be rendering the other blog posts inside the first? :/
- How to get total gross revenue for current month in the woocommerce dashboard status widget
- Attaching an upload to a user
- Change home_url in searchform.php to go to HTTPS instead of HTTP
- can’t grab PHP $_POST variable
- Ajax Load more CPT via shortcode
- Loop 1 user randomly
- Wp_mail doesnt work
- Use WP_Query Data In Cookie
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- Sort by multiple options in custom field
- Is custom behaviour possible when asynchronously uploading?
- How can I show only if custom field has content [closed]
- Top menu disapears in Category Pages when filtering using ACF
- doubled content
- Adding if statement to content for homepage
- Tables not showing divs and loop/php items
- Keeping the previous get value and add another value when submitted
- Pagination not displaying
- How to add active class dynamically
- Setting WooCommerce currency programmatically
- Masking external links with internal link for member-only
- I’m not able to get access $wpdb in my php file in wordpress
- Submit cf7 form to cfdb as pdf/BLOB [closed]
- WooCommerce: write featured image dimensions to custom fields in product’
- transition_post_status hook, works – but not if the post is new
- How can I change the location where the custom field is displayed in the Quick Edit tab in WordPress