Outputs attachments of the post. If ID or Slug is provided, outputs the attachments of that particular post.

Short Code



Attribute Description Default Value
id ID of the target post. Optional
slug The slug of the target post. This takes precedence over ‘id’ attribute. If you use ‘id’ and ‘slug’ attribute, the ‘id’ attribute is ignored. Optional
type Output format for attachments.

Type Attribute Value
Title title
Title with Link linktitle
Link Only link
ID id
Optional linktitle
separator One or more characters to separate multiple items. Optional , (a comma)