By default, you can’t. Galleries are tied to posts, and only to posts.
Options:
- Insert the gallery from any arbitrary post, via
where
123
is the ID of the post. - Create a custom filter for the
gallery
filter hook, whereby you query/include the images that you want, perhaps by some post custom metadata (that you would also have to create) - Insert images individually, rather than as a gallery
- Duplicate the images by uploading/attaching them also to the new post, so that they can be output via