WordPress.org

Ready to get started?Download WordPress

Forums

Gallery Metabox
[resolved] gallery meta box only shows in page (5 posts)

  1. shizzytw
    Member
    Posted 2 years ago #

    Hey Bill, I installed your gallery metabox plugin but im only able to see it in pages but not post and custom post type. is it cuz im using the newest wordpress?

    Thanks

    Felix

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

  2. Bill Erickson
    Member
    Plugin Author

    Posted 2 years ago #

    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:

    http://www.billerickson.net/code/gallery-metabox-custom-post-types/

  3. shizzytw
    Member
    Posted 2 years ago #

    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.

  4. Bill Erickson
    Member
    Plugin Author

    Posted 2 years ago #

    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;

  5. shizzytw
    Member
    Posted 2 years ago #

    Oh cool thanks for help :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic