wp_get_attachment_image_src() takes ID of attachment “post type” (in quotes because it’s native WP post type so not quite same thing as CPT).
Now while users are shared in multisite, posts are not. The ID (94) that points to specific attachment in your main site has no meaning whatsoever in any other site of your multisite.
At which point it boils down to mucking with getting data from different site. It might be easier approach to store actual URL to image in user metadata as well.
Related Posts:
- Add image size if page template
- remove links from images using functions.php
- Issue with wp_get_attachment_image() and SVG file type
- Programmatically Set First Image as Featured
- Removing default image size list in Media Box
- How to use get_template_directory_uri() to load an image that is in a sub-folder of my theme?
- How to add classes to images based on their categories?
- How to create thumbnails for PDF uploads?
- Implementing DNS Prefetching with WordPress
- How to reduce original image quality on upload?
- Is it possible to maintain image aspect ratio when scaling images?
- Set image size on media and text block with a function
- Generating Responsive Background Image Sizes in PHP
- Why are image thumbnails cropped proportionally (not per dimensions)?
- Create thumbnail on PDF upload with Gravity Forms
- Gallery images titles – get from post
- Use Exact Image Size using add_image_size
- How to add a rel attribute to images that contains their categories?
- Why are image thumbnails cropped proportionally (not per dimensions)?
- Different functions file for each site in multisite installation?
- Display height and width properties with the_post_thumbnail() or related function
- Insert width & height attributes to all images displayed on each page
- Custom image size in Media Dropdown
- Removing the first image in content
- Function to auto-set a featured image that is already in use
- Delete pages and Create default pages for all new network sites
- Actions according to image type and size
- Multisite, either change the name of sample-page or create new page
- Woocommerce Storefront WordPress Ignore Media Gallery Images and use External 3rd Party Host
- How to add css class to image attached in all the posts?
- Loop (iterate) through Multi-Site sub-sites (blogs)?
- Add custom image size not working
- Global functions on WPMU
- How can you limit srcset on a single type of page?
- how to add an image to the footer?
- wp_get_attachment_image function size argument not working if I also add a custom class
- Run function when WordPress new multisite is created or ACF field is updated
- Overwriting Parent Theme’s Image Sizes
- Image rotation fails to regenerate custom sized thumbnail
- Publish/Update post is changing image links from file url to post url
- Twentyten Child Theme: header images display messed up in admin panel
- Disable auto-resizing of uploaded images, but only for certain filename
- Can you put a condition on add_image_size() depending on the width of the uploaded image?
- Remove after images
- Conditional Gravity Forms filter in WordPress Multisite
- Set spesific size of featured images
- Multisite Ajax serialize return error [object Object]
- Can’t generate thumbnail images
- Multisite 404 on pages – rewrite error breaks database
- Redirect to another page using contact form 7? [closed]
- Function that outputs second theme url
- Control the srcset much more (not all sizes in it each time)
- Limit dimensions of “Full” size images
- How to hide image-url if no attachment?
- What are the meta fields for an attachment?
- How to properly set custom logo size?
- Add attribute only to first image of every post via functions.php
- Need To Change WordPress Meta Tags… Includes wordpress shortcodes
- How to Add Shortcode to html img code?
- dynamic site link for future migration in echo do_shortcode()
- How to add a new image size and apply it to posts only?
- Function to insert missing image size attributes into img tags
- Image Crop Not Working
- Use existing image sizes for WooCommerce
- Problem in using Customizer
- Retrieve First Image Function
- Custom Image Size in Insert Media
- Featured Image keeps cropping
- Prevent creating multiple image resizes in twentytwelve template
- Conditional function for excluding first image from content, not working
- get_image_tag() html output : empty src attribute
- Need To Resize Images Exactly Without Losing Image Details
- how can I change all wordpress media file url to custom cdn url?
- Different image using srcset function
- Members only function, but allow account activation [solved]
- Is it possible to limit number of files a non-admin user can upload via the WordPress media library?
- Auto delete content in specific folder inside media library
- How to update an image attachment’s alt text from a custom field when saving a post?
- large image size of 1440×1440 not pulling 2x of 2880×2880 image
- Can You Set A Minimum Image Dimension For Resizing Images?
- blank page with wp_get_attachment
- Competing Login Redirects – Need to be Combined?
- (Divi): How to make WordPress load images of specific size for Blurb modules on given page with a funciton?
- Adding a class to the body of an inactive site using multisite
- Featured image on archive page based on post type
- restrict uploaded image size and fixed image display size
- Why am I losing image quality on my site?
- Using Switch Statement to Change Image According to Last Digit of Topic ID
- Disable links to images only if link is an image
- Restricted images only for logged user. (hidden url)
- No compression occurs on my jpegs after adding jpeg_quality hook to my functions.php file
- Different body image backgrounds on different pages, posts and categories
- Update add_image_size
- Open image size links in a page instead of direct image link
- Dynamically adding Captions to images
- Full size image option removing problem
- Function to get thumbnail img source
- Run function from parent on child site
- How to force Cover block to use the full size image resolution
- Add custom text before all image captions in WordPress posts