Support » Plugin: Gallery Metabox » [Plugin: Gallery Metabox] gallery meta box only shows in page
5 years, 2 months ago
Hey Bill, I installed your gallery metabox plugin but im only able to see it in pages but not post and custom post type. is it cuz im using the newest wordpress?
By default it should only show up on ‘post’ and ‘page’ post types. You’ll need to use the ‘be_gallery_metabox_post_types’ filter to define new ones:
Gallery Metabox – Custom Post Types
hey bill, thanks for help. I have the meta box working.
when you add a new post, page or custom post type, the gallery image metabox wont show up. You must create the post first in order to see the meta box.
Yes, this is something I’ll be fixing in the next version (there’s a few other small tweaks I want to make as well, which is why I didn’t push out an update for this).
If you want to edit your plugin to add the change yourself, change line 37 of gallery-metabox.php from this:
if( !isset( $post_id ) ) return;
if( !isset( $post_id ) ) $post_id = false;
Oh cool thanks for help 🙂