Support » Plugin: Gallery Metabox » [Plugin: Gallery Metabox] gallery meta box only shows in page

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    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.

    Plugin Author Bill Erickson

    (@billerickson)

    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;

    to this:

    if( !isset( $post_id ) ) $post_id = false;

    Oh cool thanks for help 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Gallery Metabox] gallery meta box only shows in page’ is closed to new replies.