Answer the question
In order to leave comments, you need to log in
How to get links to media files?
Greetings.
There is a task. It is necessary to display a list of reports in pdf format on the page. PDF can be loaded into media files, but how then through the code to loop through all these PDF files, their name and addresses to get and display on the page?
It can be a plugin, if you know. But, I didn't find anything like that.
Thank you.
Answer the question
In order to leave comments, you need to log in
try this
google query: powershell get all dhcp reservations
result: https://social.technet.microsoft.com/Forums/window...
\\?\
before full path. Documentation: File Path Formats on Windows Systems .
get_attached_media()
- a function to get attachments. Well, output through it - pass the type and id of the record.
You will receive an array of data - choose from there what you need (url, name, upload date) and typeset in the desired format
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question