WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. indira14
    Member
    Posted 8 months 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.

    http://wordpress.org/plugins/gallery-metabox/

  2. bkjproductions
    Member
    Posted 4 months 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
    Member
    Plugin Author

    Posted 3 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic