Title: Document Gallery in custom post types
Last modified: August 30, 2016

---

# Document Gallery in custom post types

 *  Resolved [martinstr](https://wordpress.org/support/users/martinstr/)
 * (@martinstr)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/document-gallery-in-custom-post-types/)
 * I am using Learndash, which has a custom post type called “Lesson”. I tried using
   the [dg] shortcode in a Lesson, but it doesn’t seem to work. Suggestions?
 * [https://wordpress.org/plugins/document-gallery/](https://wordpress.org/plugins/document-gallery/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/document-gallery-in-custom-post-types/#post-6706858)
 * Hi Martin,
 * Does the Lesson have attachments for DG to pickup? I would only expect your given
   example to work if that were the case, since the plain `[dg]` shortcode only 
   looks for attachments local to whichever post the shortcode was used on.
 * -Dan

Viewing 1 replies (of 1 total)

The topic ‘Document Gallery in custom post types’ is closed to new replies.

 * ![](https://ps.w.org/document-gallery/assets/icon.svg?rev=983329)
 * [Document Gallery](https://wordpress.org/plugins/document-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/document-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/document-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/document-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/document-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/document-gallery/reviews/)

## Tags

 * [lesson](https://wordpress.org/support/topic-tag/lesson/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/document-gallery-in-custom-post-types/#post-6706858)
 * Status: resolved