WordPress.org

Forums

Attachments
[resolved] Recognize Attachment Format (2 posts)

  1. Gianluca Cherubin
    Member
    Posted 2 years 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.
    Thanks!

    http://wordpress.org/extend/plugins/attachments/

  2. Gianluca Cherubin
    Member
    Posted 2 years ago #

    Got it! Just have to check if <?php echo $attachments->type(); ?> is "image".

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Attachments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic