If you have uploaded a load of PDF files to your site and want to make a page containing a full list then you can do this using a number of different shortcodes. Here we use bw_pages.
You can use the bw_pages shortcode with the
post_mime_type= parameters to select the attachments to list.
[bw_pages post_type=attachment post_mime_type=application/pdf post_parent=. orderby=date order=DESC posts_per_page=5 format="d E L"]
- For the Media post type (attachments) the Caption is implemented using the equivalent of the Excerpt field and the Description is the Content.
- This doesn’t eliminate duplicates; each file lists has been attached to a different parent. We needed to do this to create multiple examples.
- You need to use
post_parent=.to be able to list ALL attachments regardless of where they are linked to.