Title: Cannot attach gallery on custom post types
Last modified: August 21, 2016

---

# Cannot attach gallery on custom post types

 *  [Dado](https://wordpress.org/support/users/dadofr/)
 * (@dadofr)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/cannot-attach-gallery-on-custom-post-types/)
 * There is no way to list “own” post types in pulldown on a gallery create page.
 * Changing your code in workbox_YV_video::get_galleries() to:
 *     ```
       $args = array(
         'numberposts' => 100,
         'post_type' => array('custom_posttype1', 'custom_posttype2', 'post'),
         'orderby' => 'post_title', 'order' => 'DESC'
       );
       $posts = get_posts($args);
       ```
   
 * fixes the problem.
 * Can you provide a option to be able to configure “post_types”?
 * [http://wordpress.org/plugins/workbox-video-from-vimeo-youtube-plugin/](http://wordpress.org/plugins/workbox-video-from-vimeo-youtube-plugin/)

The topic ‘Cannot attach gallery on custom post types’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/workbox-video-from-vimeo-youtube-
   plugin.svg)
 * [Workbox Video from Vimeo & Youtube Plugin](https://wordpress.org/plugins/workbox-video-from-vimeo-youtube-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/workbox-video-from-vimeo-youtube-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/workbox-video-from-vimeo-youtube-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/workbox-video-from-vimeo-youtube-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/workbox-video-from-vimeo-youtube-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/workbox-video-from-vimeo-youtube-plugin/reviews/)

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)

 * 0 replies
 * 1 participant
 * Last reply from: [Dado](https://wordpress.org/support/users/dadofr/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/cannot-attach-gallery-on-custom-post-types/)
 * Status: not resolved