Trying to dequeue the stylesheet and js on the frontend:
add_action('wp_print_scripts', 'se_deregister_stylesheets_scripts', 999 );
function se_deregister_stylesheets_scripts() {
if( is_admin() ){
// Do Nothing
}else{
wp_deregister_style('wp-gallery-metabox');
wp_deregister_script('wp-gallery-metabox');
}
}
]]>
I did a quick workaround which is working for now:
if ($post_type == ‘gallery’) {
add_meta_box(
‘gallery-metabox’, ‘Gallery’, array($this, ‘gallery_meta_callback’), $post_type, ‘normal’, ‘high’
);
}
This will work probably forever on this one site, but I will put my actual fix when I have time to fully debug and re-write.
]]>Hi there,
What happened?
– Plugin downloaded
– Plugin installed
– Plugin activated
– Selected my post type, using Dashboard > Setting > WP gallery metabox
– Created a new post, of my Custom Post Type
– Gallery-field appears in Custom Post Type
– Added a few pictures using the Gallery-field
– Edited the template I use for my Custom Post Type using Elementor
– Add Gallery-widget
– Choose dynamic tag
– What field do I choose? (screenshot https://prnt.sc/w015hy)
– The WP gallery is not found..
And, what do I have to do with the code mentioned on the plugin-page?
get_post_meta(get_the_ID(), ‘vdw_gallery_id’);
Now plugin provides only '_builtin' => FALSE
post types. But may be, whould be better add also page
post type.
Plugin saves its own options at postmeta
table as options of post id=1 with key “wp_gallery_metabox_allow_post”. But would be better to use standard options
table for plugins options.
Error in class-wp-gallery-metabox-admin.php at string 60. WP function add_options_page() 6th parameter must be integer or null (it is $position), string ‘gallery_metabox’ given.
]]>Hi there!
Is there a way I can edit the plugin to allow the upload of video files and/or video links to the gallery?
The gallery outputs in a carousel slider and I would like for the first item to be a video but that can only happen if I upload a video or video link to the gallery.
Any help is much appreciated, thank you!
André.
]]>Hi there, Im getting this warning on my WordPress dashboard every time I access to any post. I’m using wp-gallery-metabox only in one custom post type, but getting this warning in all post.
Warning: in_array() expects parameter 2 to be array, boolean given in …/wp-gallery-metabox/admin/class-wp-gallery-metabox-admin.php on line 67
Any help?
]]>Hello.
I liked your metabox plugin. The problem is that the buttons are not working properly. The “change image” link does not go to image editing. You would not be able to help with this?
]]>Plugin throws this notice. I think this constant should be prefixed.
Notice: Constant PLUGIN_NAME_VERSION already defined in /srv/www/wordpress-develop/public_html/src/wp-content/plugins/wp-gallery-metabox/wp-gallery-metabox.php on line 33
Hi
Thanks, this is a great plugin. I just need some help to do something.
I want to have the same metabox on the front-end of the site as well so certain users can add or delete the pictures that have already been added in the WP admin interface.
Do you have any code for this?
Thanks
]]>Hey, the plugin is pretty nice, but how can I display the images on pages / posts?
]]>