Description

A shortcode that enables attachments display inside posts content or manual attachments display anywhere in a theme.

Usage

[download-attachments container="div" title="Attachments" style="none" display_icon="0" display_user="1"]

Attributes

  • container – a download attachments container selector, defaults to: “div”
  • container_class – a download attachments container class, defaults to: “download_attachments”
  • container_id – a container id, defaults to: “”
  • style – a style, defaults to: “list”
  • link_before – optional content displayed before download link, defaults to: “”
  • link_after – optional content displayed after download link, defaults to: “”
  • display_user | 0 or 1 – option to display who added an attachment to download, defaults to: plugin settings
  • display_icon | 0 or 1 – option to display an attachment icon, defaults to: plugin settings
  • display_count | 0 or 1 – option to display downloads count, defaults to: plugin settings
  • display_size | 0 or 1 – option to display an attachment file size, defaults to: plugin settings
  • display_date | 0 or 1 – option to display the date of adding an attachment to download, defaults to: plugin settings
  • display_caption | 0 or 1 – option to display an attachment caption, defaults to: plugin settings
  • display_description | 0 or 1 – option to display an attachment description, defaults to: plugin settings
  • display_empty | 0 or 1 – whether to display Download Attachments box if there are no attachents added, defaults to: plugin settings
  • display_option_none  – text for no attachments available, defaults to: “No attachments to download”
  • exclude – a comma separated list of attachment IDs to exlude from display, defaults to: “”
  • include – a comma separated list of attachment IDs to include in display, defaults to: “”
  • title – text for download attachment box, defaults to: “Download Attachments”
  • orderby – attachments sorting method, defaults to: “menu_order” – which means a manual order, as set in Download Attachments metabox
  • order – attachments sort order, defaults to: “asc”

No replies yet

Be first to start the conversation.

Leave a Reply

Please, do not use this form for technical support. To get support for our plugins, use the support forum.

Your email address will not be published. Required fields are marked *