I found this stray code in the header.php
$GLOBALS[blog_id] = get_option('woo_blog_id');
This wiped out the global variable that get_current_blog_id()
relies on to get the site id in multisite. This is then used by wp_get_attachment_url()
to build the appropriate URL.
Because I was getting an incorrect site id, my attachment URLs were coming out wrong.
Related Posts:
- Broken image multisite
- Images uploading to wrong directory after changing to multisite
- Why are images not displaying?
- Why are images uploaded to main domain, when using multisite with different domains?
- Media library not loading after switching the main site of multisite
- How to stop unlink images when remove a site or user
- Multisite media library uploads broken images
- Prevent images on self-hosted WordPress from being served from WordPress.com
- Multisite Pull Recent Image Attachments from Blog ID
- Upload images from one site to another in Multisite
- Images don’t show up
- Changing path for media upload folder in wordpress multisite
- Problem uploading images
- ‘Cheatin’ uh?’ Error When Attempting to Upload Images After 3.4 Update
- Show media-frame-menu on custom Media Frame
- Conditional Image Sizes for Use via Theme Customizer Upload Only
- Suspicious mesage appears instead of images
- wp_get_attachment_image_src on multisite
- Missing images after moving servers
- Crop image sizes directly from Media Library across network (not attached to post or page but sidebar)
- ACF Image Object Sizes Issue on Multisite
- Images on WP Network’s subsite appear only if accessed via main site’s url
- All links to images are broken in a subdomain multi site environment
- How to use WordPress Multisite With Different Domain Names?
- Can i merge 2 new WP_Query($variable) ‘s?
- How to reliably flush rewrite rules on multisite?
- Using wp_insert_post() with Networking enabled
- Sharing Dynamic Sidebars across Multisite Blogs
- WP Multisite – multilanguage – swich to other language by click, but “same” content
- Lock one of WP Network sites for not registered users
- How can I manage all multisite pending comments in one place?
- WordPress Multisite Network installation and dev questions
- List all sites in multisite
- Migrating WPMS from apache to IIS7 causes Database Error
- Turn off trackback/pingbacks and comments on all existing multisite sites
- My subsites accidentally went from one multisite network to another. How do I change it back?
- Subfolder multisite issue. Themes and plugin files 404
- Creating Admin Options Page where users can make changes to a theme
- Creating multisite in wordpress using php
- Multisite list all pages in site
- WordPress Multisite Sites show in Dropdown but not in Sites menu
- Disable domain redirect
- Multisite setup on IIS with subdomains
- Partially translated dashboard in one of network’s site
- How can I fix a Virtual Multiblog install that has no errors, but won’t show all my sites?
- Depth > 2 possible with multisite?
- What are Attributes used for in a WordPress Multisite?
- Make a user administrator to a sub directory site and a contributor to main site in multisite network
- How to store custom user data on the database?
- NGINX rewrite rules for sub subdomains
- wordpress multisite dashboard link in admin bar
- Multisite – user email activation links broken
- WP MU Register User across all blogs
- multisite subdomain behind reverse proxy
- How to disable a network enabled plugin on all sites, excepting on one?
- Multisite Subdirectory with same domain subdomain
- wp_mail() not sending email in multisite subdomain
- What are good approaches to routing some urls to a second WordPress install?
- How to run a WordPress site across multiple ccTLDs?
- Google Apps SMTP for WP MultiSite?
- Get users registered 30 days ago(or more)
- Pull Custom /wp-admin/css for Non-Admin in Multisite
- Being Forced To Use Sub-Domains on Multisite
- WordPress in subdirectory, Multisite using subdomains Nginx
- How to query blogs posts of WordPress sub domain?
- how to list all subdomain in wordpress multiuser
- Can you please verify my robots.txt for wordpress
- sub-page settings saving in NETWORK DASHBOARD
- Check if current site ID and value exist in WPDB
- Multi-vendor with custom shop site for each vendor
- You need to login with a user that has edit posts capacity?
- How to publish some default pages in Multisite creation?
- Change WP-LOGIN and WP-SIGNUP for any request
- unique identifier for the same pages in a multilanguage/site context
- How to automate setup of theme, pages, widgets, etc for a new site in multi-site?
- Multisite ‘Welcome User Email’ SITE_NAME returns ‘network’ name, not the name of the blog
- Unified login page for a Multisite/BuddyPress site
- Problem with new Multisite Installation
- Merge posts of more than one site by using one database with the WordPress network
- User registration on wordpress multisite
- i want to change URL of WordPress image or rewrite in runtime
- Website creation for multiple clients but from a single account on multiple host name
- Is mature Multisite
- What is the optimal solution: WP Multisite vs InfiniteWP
- Best way to have multiple custom domains associated with a site within a multisite installation
- Subdomain multisite instances having same content
- Can I add a rewrite rule in htaccess to remove the multisite subdirectory from the URL?
- allow multisite in the installation process
- WordPress single sign on using cookies with shared user role functionality between more than 2 wordpress subdomains
- How to split database of WordPress multi-site network into multiple database
- Multisite /files/ URLs broken after server move
- WordPressMU: URL change and broken permalinks/links
- Extended URLs created using multisite feature not loading CSS/JS
- Multisite – User creation for second site from first site?
- How do I enable Multisite on WP 3.7.1?
- Multiple domains for with a single instal
- Using common slider in all sites
- Letting clients use visual builders plugins/themes on WordPress Multisite installation
- WordPressMu network with private sites
- Moving a WordPress Multisite site to a new install