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
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