[wp-testers] Gallery attachments in wp3.5

Otto otto at ottodestruct.com
Fri Dec 21 22:34:28 UTC 2012


On Fri, Dec 21, 2012 at 2:55 PM, Philip M. Hofer (Frumph)
<philip at frumph.net> wrote:
> Previous to 3.5 attaching images to a post and *not* having it in the
> [gallery] in the post kept them attached to the post.
>
> in 3.5, those attached to the post galleries are not being recognized so the
> 'add media' button when it comes up only says "create gallery" yet there is
> one (as the post has attached images to it)
>
> then when using the create gallery button it really only adds [gallery
> id="#,#,#"] to the post and doesn't really attach them to the post
>
> .. is this right? how it is nowadays?


No, it still attaches them to the post, same as always. The [gallery]
code will even behave the same in that respect.

If you want to see the images attached to the post, pick the Insert
Media selection, then the Media Library tab, then change the dropdown
to "Uploaded to this Post". Voila.

With 3.5, the concept of a "gallery" has been divorced from the images
attached to the post itself. No longer does the post attachments
really define the gallery, but the shortcode itself defines the
gallery. To edit an existing gallery, pick the Visual editor, click
the gallery placeholder in the post, and in the upper left of that,
click the "Edit Gallery" button. This will bring up the gallery editor
with the gallery in place, for editing. This works even on the older
[gallery] only shortcodes, for backward compatibility, but new
shortcodes generated should have the IDs in them.

-Otto


More information about the wp-testers mailing list