Forums

Image embed versus image attachment (10 posts)

  1. Dave Warner
    Member
    Posted 10 months ago #

    When looking at the single site Settings/Media menu, there are Image Sizes, Embed and Uploading files options. In multi-site, there is no Uploading files options. In my sites, this means all images are 'attached' to the post instead of embedded which is what I want.

    I can't find anywhere in multi-site where you can turn the Uploading files area on and then set the uploads folder.

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 10 months ago #

    The uploading files options in that area was only used for changing the location of the media storage. In MultiSite, it's something you shouldn't mess with if you're not familiar with it.

    However. Go to yourdomain.com/wp-admin/network/settings.php and look for "Upload Settings" :) Once you set those, you can upload images per normal.

  3. Andrea_r
    team pirate
    Posted 10 months ago #

    In my sites, this means all images are 'attached' to the post instead of embedded which is what I want.

    you can still embed an image in a post without it being attached to the post. It just means you're linking to the picture.

  4. Dave Warner
    Member
    Posted 10 months ago #

    I did go to the Network Admin settings and set those up. They are correct. Andrea - The problem is - when you click on the Add an Image button (in multi site) and attempt to embed it, it makes it an attachment no matter what:

    <a href="http://www.vennervox.com/you-take-the-good-you-take-the-bad/jobless" rel="attachment wp-att-4121"><img class="aligncenter size-full wp-image-4121" src="http://www.vennervox.com/files/2011/07/JOBLESS.jpg" alt="" width="149" height="214" /></a>

    If I go to a site that is NOT multi-site and do the same thing, it embeds it properly:
    <a href="http://www.davidwarnerstudio.com/wordpress/wp-content/uploads/2011/07/IMG_6776-Edit_iPad.jpg"><img class="size-medium wp-image-1081 alignright" title="© David Warner Studio" src="http://www.davidwarnerstudio.com/wordpress/wp-content/uploads/2011/07/IMG_6776-Edit_iPad-300x160.jpg" alt="" width="300" height="160" /></a>

    Both images were imported exactly the same way, both (looking at the code) are inserted entirely different. I don't want them as attachments - I wanted them embedded!

  5. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 10 months ago #

    Those are both correctly 'embedded' codes...

    If I go to http://www.vennervox.com/you-take-the-good-you-take-the-bad the image shows up.

    The only difference is the URL WP uses.

  6. Dave Warner
    Member
    Posted 10 months ago #

    The issue is, on one site, you use Fancy Box (for instance) and have the image pop up in a box. On the other (Venner Vox) that doesn't work. Click on an image, takes you to a page with the image, which then asks you if you want to see it larger, which just puts it on a blank page. NOT what I want! :-)

  7. Andrea_r
    team pirate
    Posted 10 months ago #

    rel="attachment

    is that the bit you mean?

  8. Dave Warner
    Member
    Posted 10 months ago #

    Andrea - yes, and I'm not putting that in there manually, that's just the way the system is doing it. I have about 20 different WP sites, two of them multi-sites with a few sites off of them. I've noticed that on all the multi-sites, they attach instead of embed and I've never noticed that before. I have looked everywhere and can't figure out why? But, it does cause images to show differently as I mentioned to Ipstenu a minute ago.

  9. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 10 months ago #

    That's default WP behavior. Nothing's wrong with what you're seeing. If you want FancyBox, you have to install and configure it per site.

  10. Andrea_r
    team pirate
    Posted 10 months ago #

    "rel is an attribute of <link> and <a> elements, it is intended to provide navigation information to a conforming user agent. "

    It being mentioned in the url does not actually attach it to the post, as that is a slightly different behavior behind the scenes. There's a flag in the db that gets set when an image is "attached" to the post and this is the same in multsite as single. There's nothing in the code to do anything different.It

    The other thing you haven't checked is plugins active on both sites.

Reply

You must log in to post.

About this Topic