Gallery Metabox
[resolved] Meta box not showing up in all pages (3 posts)

  1. indira14
    Posted 1 year ago #

    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.


  2. bkjproductions
    Posted 1 year ago #

    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.

  3. Bill Erickson
    Plugin Author

    Posted 1 year ago #

    Don't edit the plugin directly. That's what the filter is there for. Here's an example: http://www.billerickson.net/code/gallery-metabox-custom-post-types/

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gallery Metabox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic