Support » Plugin: Attachments » Recognize Attachment Format
3 years, 11 months ago
Hi, is there a way to recognize the format of the attachment?
In my particular need if it is a jpg. I’d like to show the image if it is a jpg, otherwise no.
Got it! Just have to check if <?php echo $attachments->type(); ?> is “image”.