• Hi,

    I am trying to use Document Gallery to create a document page of sorts for some pdf newsletters. What I am trying to do is use the gallery in two spots on the same page. I have created a category for my newsletter pdf documents and what I want to do is set up one gallery that only pull the single latest document (as sort of a featured newsletter) and then a second gallery that pulls the other pdfs in the newsletter category and puts them in descending date order. I am having a couple of issues with this because I cannot seem to get the gallery set up to pull by category. I can only get it to pull by the pdf post id (when I select the pdfs it sets the id parameter on the short tag). I see in the docs that there is a category parameter you can use, but when I try to use it with the url slug for the category it doesn’t pull any pdfs at all. Can you help me with some direction on how to set up what I am trying to do?

    Thanks,

    Brian

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

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

    (@danrossiter)

    Hi Brian,

    The first part is easy 🙂

    You’re going to want something like [dg limit=1] & [dg skip=1] to get the featured newsletter and the “other” newsletters. In addition to the above, both shortcodes will need to be ordered and have the correct category. Which brings us to second part.

    For categories, DG does not have built in category support so if you’re setting categories on your newsletters, presumably you’ve got a third-party plugin setting these up for you. So a few questions… What plugin are you using? What does your configuration look like exactly?

    -Dan

Viewing 1 replies (of 1 total)
  • The topic ‘Auto-generating Gallery?’ is closed to new replies.