Skip to content

Error finding Image when using switch_to_blog #1

Closed
BandonRandon opened this Issue Oct 15, 2012 · 0 comments

2 participants

@BandonRandon

Hi,

I believe I may have found a bug in get_the_image. I have a multisite blog and on one custom template I'm using the switch_to_blog() function to get content from another site in the network. For whatever reason get_to_image is looking somewhere else for the image in this instant.

For example on the site with the post and original image it links to:
http://site1.beegoodmarketing.com/files/2012/10/fredhutchinson_logo.jpg

However within switch_to_blog it links to:
http://site1.beegoodmarketing.com/wp-content/blogs.dir/2/files/2012/10/fredhutchinson_logo.jpg

A few issues with this are 1) I'm using a custom wp-content folder ie "core" and second the logo in the folder isn't accessible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.