Use the Attachments Display of the Dynamic Content block to list the post’s attachments, with links.
Attachments – thumbnail=none, captions=y
Attachments – thumbnail=full titles=n
Attachments for a specific post
Here we set post_parent=45642
.
Notes
- When you use the Attachments display, if you want to show the attachments to the current post, you should not need to set the post type and post parent; the values will default.
- For Attachments this uses the logic of the [bw_attachments] shortcode to render the content.
Advanced parameters and values
thumbnail=full,none,thumbnail,large
– parameter to set the size of any image attachments.
titles=y,n
– display the attachment titles
captions=n,y
– display the attachment caption ( excerpt ) and description.
Syntax
[bw_attachments
numberposts="5| numeric - number to return"
offset="0| numeric - offset from which to start"
category="| category ID - numeric ID of the post category"
category_name="| category-slug - category slugs (comma separated)"
customcategoryname="| category-slug - custom category slug"
orderby="date| ID| title| parent| rand| menu_order - Sort sequence"
order="DESC| ASC - Sort order."
include="| id1,id2 - IDs to include"
exclude="| id1,id2 - IDs to exclude"
meta_key="| meta key - post metadata key"
meta_value="| meta value - post metadata value"
post_type="attachment| post type - Post type to display"
post_mime_type="| image| application| text| video| mime type - Attached media MIME type"
post_parent="| ID - Parent ID to use if not current post"
post_status="| publish| inherit| pending| draft| auto-draft| future| private| trash| any - Post status"
id="| id1,id2 - IDs of posts to display"
posts_per_page="| numeric| . - Number of posts per page. Use '.' for current value 15"
thumbnail="thumbnail| medium| large| full| nnn| wxh - image size"
titles="y| n - Display titles"
captions="n| y - Display attachment's Caption and Description"
class="| class names - CSS class names"]
Example
oik generated example.
[bw_attachments]
Attachments to this post
Here are the three attachments to this post;
- the Apostrophes poem, in PDF form
- a photo of a Rubiks cube.
- the readme file for the oik base plugin
