Hi, I was wondering if there is a way to echo the file type that was uploaded using the file field.
For example, if someone uploads a PDF, then on frontend I can echo “PDF” into the class and style it as needed..
This is in reference to this element:
http://www.advancedcustomfields.com/resources/file/
Thanks!
If the frontend links to the file, you could use css 3 selector as workaround, e.g. a[href$=".pdf"]
http://www.w3schools.com/cssref/css_selectors.asp