How to retrive mime type for the current get attachment
-
Hello everybody.
I′m uploading some pdf files and .doc/docx files in a project.
So, I′m inserting a link attachment file inside the loop and is working fine.But I need to get a specific atribute: the mimetype.
So, I need to print the attachment url and mimetype, like this
Download file on https://domain.com/wp-content-….file.pdf
Fyle Tipe: pdf or application/pdfCould someone helpme with this.
By the way, I′m using a custom theme and not the default wordpress theme.
Tks a lot
Flávio
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to retrive mime type for the current get attachment’ is closed to new replies.