Gutenberg Galleries and Gallery Post Type

I am working with some customizations I made on the Gallery post type (using the x_featured_gallery(); function). However, since we’ve made the transition to Gutenberg, the Gallery block is not working with that function and therefore is not displaying where it ought to in my theme. Is there another function I can use to replicate what the x_featured_gallery(); used to do?

UPDATE: It appears that you have to upload the images and cannot select them from the Media Library. Is this a bug or the way things are supposed to work?

Hi Bobby,

This is not a bug. This is how things are supposed to work by default. Those functions get the images that is attached to the post. For an image to be attached to specific post, it should be uploaded on that specific post.

Hope this helps.

Is there an easier way to manage which images are attached to a post and which ones are not? A plugin or hack that accomplishes this?

Hi Bobby,

You can in the native Media Library’s list mode

You can either attach or detach an image to a post.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.