Support » Plugin: Gallery Metabox » Meta box not showing up in all pages

  • Resolved indira14


    I have a very strange problem with this plugin. For most pages, the plugin works. I see a meta box with the images that are attached to the post.
    For some pages though, the metabox does not show up. I do have pictures attached to the page, but there’s no metabox showing them on the edit screen of the page.

    I already checked the screen options, there’s no “Gallery Images” option on the pages where I don’t find any Gallery meta box. On other pages, the option is available.

    I hope someone can tell me how to fix this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Is it possible that you are using custom post types? By default the Gallery Metabox only shows up on Pages and Posts. For example, I created a custom post type called “Misc”. So it doesn’t show up for that post type.
    BUT, if you edit this line:
    $post_types = apply_filters( ‘be_gallery_metabox_post_types’, array( ‘post’, ‘page’) );
    to this:
    $post_types = apply_filters( ‘be_gallery_metabox_post_types’, array( ‘post’, ‘page’, ‘misc’) );
    then it should show up.

    Plugin Author Bill Erickson


    Don’t edit the plugin directly. That’s what the filter is there for. Here’s an example:

    This goes in your theme’s functions.php file or a custom plugin you build. This way, when the plugin is updated in the future your changes are not lost.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Meta box not showing up in all pages’ is closed to new replies.