• Hello, plugin is great! How can I add some simple fields to “Frontend Display”? I want to describe additional authors (not uploader) of attachments in simple text fields and set time of create file (not upload). Example how display on frontend:

    Uploader: John Smith
    Created by: Jane Cox
    Date of upload: 2008-02-01 15:10:45
    Date of create: 2007-11-19 12:00:00

    https://ww.wp.xz.cn/plugins/download-attachments/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author dFactory

    (@dfactory)

    Yeah, you can display any data WP stores with the attachments.

    Just use da_get_download_attachments() function located in indludes/functions.php to manually display your attachments data or the da_get_attachments() filter to just modify the output.

    Both give you access to attachment IDs that you can use to get any data associated with it.

    Hi dFactory

    Thanks for a great plugin ..

    Can you expand a bit more to help us non coders – for example adding da_get_download_attachments() – to a post template to achieve [download-attachment]

    What exactly should we add – please

    This is what I have <?php da_get_download_attachments(‘download-attachments’); ?> which does not work.

    Any help would be appreciated

    Plugin Author dFactory

    (@dfactory)

    Then try: da_display_download_attachments()

    da_display_download_attachments() function – is for displaying your attachments

    da_get_download_attachments() function – if jsut for getting attachments, without output. but this one allows you to do any kind of data manipulation – it’s intended rather for developers

    Regards,
    Bartosz / dFactory

    Hi Bartosz

    Thank you very much for your help and super fast response – yes that seem obvious now 🙂

    So I used this in my custom post template (for other non coders)

    <?php da_get_download_attachments(); ?> – And it Works!

    Kind regards

    Brad

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Frontend Display (more fields)’ is closed to new replies.