Viewing 1 replies (of 1 total)
  • Plugin Author David Lingren

    (@dglingren)

    You can do this without a custom template. For example, if you want to create a gallery of the seven most recent PDF uploads, you can use:

    [mla_gallery post_parent=all orderby=date order=desc posts_per_page=7 post_mime_type=application/pdf link=file]

    The query parameters select all of the attachments (post_parent=all), sort them by upload date (orderby=date), put the most recent uploads first (order=desc) and then limit the gallery to seven items (posts_per_page=7). The post_mime_type parameter selects PDFs, and the link parameter generates a link to the PDF document.

    You can find more information in these earlier support topics:

    Idea/Feature Request: Latest Images

    shortcode help

    I hope that gives you the information you need. Let me know if you have any problems or further questions. Thanks for using the plugin.

Viewing 1 replies (of 1 total)

The topic ‘shortcode only postinf newest uploaded pdfs’ is closed to new replies.