From codex:
The the_author_meta Template Tag displays the desired meta data for a
user. If this tag is used within The Loop, the user ID value need not
be specified, and the displayed data is that of the current post
author. A user ID can be specified if this tag is used outside The
Loop.If the meta field does not exist, nothing is printed.
NOTE: Use get_the_author_meta() if you need to return (not display)
the information.
So, replace the_author_meta()
with get_the_author_meta()
. You can then use wp_get_attachment_image() to get an image element ready for outputting to the page.
<?php
$id = get_the_author_meta('author_logo');
if ($id) {
echo wp_get_attachment_image($id);
}
?>
Related Posts:
- Filter to remove image dimension attributes?
- Set default image link target in Gutenberg image block
- Add an alignment option for images
- WordPress adding scaled images that don’t exist (1536×1536 and 2048×2048)
- Using Images in WordPress – Best Practices
- Image Scaling using get_the_post_thumbnail issue in WordPress
- Prevent large image uploads
- Modifying an uploaded image with ‘wp_get_image_editor’ and ‘wp_handle_upload_prefilter’
- Change the output for [gallery] shortcode
- Downsizing Many Large Images Attached to Posts, in Bulk?
- Disabling auto-resizing of uploaded images
- How do I delete thousands of unattached images?
- Wrong domain in uploads folder
- How can i alter the amount of different images sizes being stored?
- How to remove link from an image in a post?
- Re-process Images
- How to install Imagick or resolve issue
- Passing srcset to image attachment method
- Why is wordpress searching for @2x images?
- Responsive Images Resizing Images
- Broken urls with http site and https wp-admin
- Image File Names
- Gallery post images on homepage?
- How to extract image width from add_image_size?
- Link to full size image or attachment page in photo theme
- Add “data-” attribute to image links
- How can I make all post image uploads have data-width and data-height attributes automatically by default?
- Link to large image version instead of original?
- After installing ssl certificate images won’t show
- Random Size on Featured Image
- Some images not found 404 in localhost
- wp_upload_bits does not retrieve images that do not have an extension
- Images will not display, when I call them up with html in wordpress, just two blank small spaces [closed]
- Loose images in uploads folder
- Convert uploaded GIF to non animated image automatically
- Is it possible to split Default WP Media directory to multiple Folder/Subdomain?
- Add srcset and sizes to older uploads?
- How to make a gallery with dynamic images from URLs?
- Divi Theme – images not showing on front page [closed]
- Edit image results in copies of file being created
- Images in Media aren’t showing, not broken
- t5-fresh-editor-stylesheets.php breaks image placement in WP Beta 3 editor
- Find and Use an image’s caption
- Export xml use/import images from theme directory
- Is it possible to change image size used for preview thumnail in Add Media popup
- Images showing in editor but not in post [closed]
- Why are featured images sometimes cropped, and sometimes not
- Bulk Upload Image Alt Text
- Call to undefined function wp_generate_attachment_metadata()
- the_post_thumbnail(‘medium’) setting some images width=1 height=1
- Help with resizing of featured images on WooCommerce homepage
- How to set uploaded image as featured image wordpress
- Why WordPress suddenly changed sizes of thumbnails?
- WordPress Featured Image meta box not showing
- Number of Style for Image Added into Post
- remove enclosure url from feed
- the_content not showing responsive image attributes srcset or sizes
- add_image_size not working
- How to change the value “uploaded to” in the media library (WordPress 4.0)
- Thumbnails different sizes
- How to remove the images from “Uploaded to this post”?
- For a complete backup, is it enough to copy htdocs and export database?
- What exactly is the description field when uploading an image?
- Photos automatically uploaded to Media Library
- Failed to load resource:404 image
- Slidedeck Pro WordPress Image Size
- Thumbnail and image management
- Place image caption outside of figure tag (Gutenburg Image Markup)
- Featured image not shown in header
- Crop tool do not work
- Profile image does not upload
- Allow wp media library to check already selected images displayed in div
- How is called this thumbnail slider feature
- Auto Generate Thumbnail
- Images not loading on webpage, and links to other media give 404 Not Found
- Loading and Referencing Images
- ALT attribute in menu images
- Import images from old WordPress site into new site
- Images 404 after wp migration to a subdomain
- Using ACF Pro plugin – How to get alt tags using repeater with Image ID? [duplicate]
- Custom image sizes quality
- built-in responsive images in content – do I need to add anything to functions.php?
- Pasted image and text in the editor doesn’t work
- Widget media uploader doesn’t opens after widget save
- Query Image File of a Different Size
- How to display image thumbnails on the search results page?
- How to modify images during upload
- Get custom size of thumbnails
- Change Featured Image Size of the Post
- Why WordPress doesn’t show pictures when I upload them in a new post?
- Post-upgrade problems: Image URL in DB, but not showing
- greater flexibility in targeting images attached to page
- How to add a link to media file for every image inserted in content?
- How to get WordPress to resize images for srcset?
- How to give path to image in wordpress?
- Edit multiple posts featured image
- Make Jetpack CDN to filter/ignore images based on SRC [closed]
- images map on website not working
- WordPress + REST API + featured_image
- Some images not loading after changing IP on local wordpress install