• Dear Dan. Thank you for making this great plugin! πŸ˜€

    Would you consider, implementing a “offset” paramter? I’d like to show the most resent PDF uploaded to a page 1234, in one prominent column, and the three older PDF’s on a different row. Something like this, would work for me:

    [dg columns=”1″ limit=”1″ offset=”0″ id=”1234″]
    [dg columns=”3″ limit=”3″ offset=”1″ id=”1234″]

    Provided that galleries are sorted by date descending of course.

    Being able to offset, would give more flexibility in pagebuilders, making it easier to accomplish a true responsive design.

    Best regards!
    Bjarne

    https://ww.wp.xz.cn/plugins/document-gallery/

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

    (@danrossiter)

    Hi Bjarne,

    Such a parameter actually already exists (skip) — it is just not documented. We added it at the same time pagination was added to support AJAX calls when retrieving an independent page from a given gallery.

    You’ll want to do the following:
    [dg columns="3" limit="3" skip="1" id="1234"]

    -Dan

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

    Thread Starter Bjarne Oldrup

    (@oldrup)

    Wow that GREAT Dan! So easy to include any number of documents in my themes grid which then takes care of all the responsiveness – works like a charm!

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Feature Request: Offset parameter for more flexibility’ is closed to new replies.