• Resolved fredrikk

    (@fredrikk)


    Hi!

    Is it possible to filter a gallery to show only documents from a specific year? Or any other way to filter, like file size or the beginning of the file or slug name (docs-*.pdf). I use the shortcode to generate a list of pdf-documents from a media category (my own taxonomy) and would like to have different lists for different years.

    [dg order=”DESC” orderby=”name” media_category=”Remissvar” limit=-1 columns=”1″ id=”-1″]

    Fredrik

    https://www.ads-software.com/plugins/document-gallery/

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

    (@danrossiter)

    Hi fredrikk,

    The best solution for what you want is going to be categorizing your documents by year AND what you are currently categorizing by. So for example, modifying the sample shortcode you gave:
    [dg order="DESC" orderby="name" media_category="2015,Remissvar" media_category_relation=AND limit=-1 columns="1" id="-1"]

    Please let me know if there is anything further I can do to help.

    -Dan

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

    Thread Starter fredrikk

    (@fredrikk)

    Hi!

    Thanks! That was a good workaround. It worked fine.

    Fredrik

    Dears,

    I have a similar request but instead I would like to have a filter option show up before viewing the documents “for example, year, document type,,, etc” because I will be having a large database of documents and don’t want to overwhelm the user with the whole list upfront.
    Is that possible with Document Gallery?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter pdf-documents by year’ is closed to new replies.