Support » Plugin: Document Gallery » Dynamic gallery for all documents of a certain type

  • Resolved mepmepmep

    (@mepmepmep)


    Hello and thanks for a great product! πŸ™‚
    I have a question; I would like to have a kind of dynamic gallery on a page. A page for all uploaded documents of a certain type, in this case PDFs. So each time a new PDF is uploaded, it will appear on this page automatically. Something like:

    [dg localpost=”false” ids=”*” type=”pdf”]

    Is it possible, and if it is, how would I formulate that shortcode?

    https://wordpress.org/plugins/document-gallery/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Dan Rossiter

    (@danrossiter)

    Hi mepmepmep,

    Unfortunately no functionality like what you describe is currently provided in Document Gallery. I believe it has been proposed before and it may make it into a future release.

    A not-so-elegant work-around might be to use custom taxonomies to group all of your filetypes. You would need to manually assign each attachment to a filetype, but doing this assignment would allow your galleries to dynamically expand as more of each filetype taxon is added. You can see more information on use of custom taxonomies in Document Gallery on the installation page.

    I hope that helps and please do let me know if you have any additional questions!

    -Dan

    PS: If you’ve found this plugin useful, please take a moment to rate it. Thanks! πŸ™‚

    Thread Starter mepmepmep

    (@mepmepmep)

    Aha, ok, well, I think that could be a useful feature to include in a future release. At least I know I would be happy about it! πŸ™‚
    Thanks, for the info.

    Plugin Author Dan Rossiter

    (@danrossiter)

    Thanks so much for the input! I’ll add the suggestion to our issue tracker πŸ™‚

    PS: If you’ve found this plugin useful, please take a moment to rate it. Thanks! πŸ™‚

    Plugin Author Dan Rossiter

    (@danrossiter)

    Hi mepmepmep,

    I just wanted to let you know that I’ve just published a beta version of Document Gallery 3.0, which contains this functionality (among a number of other changes). If you’re interested in trying it out, the beta version can be downloaded here: https://downloads.wordpress.org/plugin/document-gallery.3.0.0-beta.zip

    To create a gallery with only certain filetypes, simply set the mime_types attribute to a comma-delimited list of the types you want included. For example, use [dg mime_types=application/pdf].

    -Dan

    PS: If you’ve found this plugin useful, please take a moment to rate it. Thanks! πŸ™‚

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Dynamic gallery for all documents of a certain type’ is closed to new replies.