We are using the frame of the Exopite Simple Options Framework in our add-on. One of the fields is an image loading metabox:
This works well and the images are uploaded and attached to the publication as expected.
When we try this in a subsitio In a network of multiple sites we encounter a problem. It's fine on the website of the parent network
It seems that it does not appear. After inspecting we see that he is giving
/ sites / 4 / sites / 4 / instead of just
/ sites / 4 /.
If we manually change the URL to
/ sites / 4 / works.
- We have disabled all other add-ons.
- We are using a default theme
wp_get_attachment_image_src ()get the wrong way to the image but
get_attached_media ()get the right paths
- It is stored correctly in the database, but on the media page it is the wrong path
Maybe it's a htaccess thing?
If you need more information, let me know.