Gallery Metabox
[resolved] Request for filter on images in metabox (3 posts)

  1. global_1981
    Posted 3 years ago #

    Awesome plugin. Love it.

    Have a request:
    Filter the images that show up in the metabox. In my case, I have added additional attachment meta data (a simple enable/disable field). So I was wondering if I could filter the images that appear in the metabox by looping through all the images and invoking the get_post_meta function for each one.

    Let me know what you think.

    Thanks for your plugin,


  2. Bill Erickson
    Plugin Author

    Posted 3 years ago #

    This functionality is already built in. Use the 'be_gallery_metabox_args' filter to modify the query.

    Here's an example that limits the images to those with a meta key of 'be_rotator_include' and a value of 1. http://www.billerickson.net/code/gallery-metabox-show-images-marked-include-in-rotator/

  3. global_1981
    Posted 3 years ago #

    My bad. Thank u sir!

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic