[resolved] Generic Image - again! (3 posts)

  1. Graham Stacey
    Posted 3 years ago #

    Hi Christopher,

    I add this to the 'Non-image Attachment' thread after you had marked it as resolved, so just posting agin to make sure it gets noticed - sorry if that means you get it twice.

    If I have this right…
    This is about using a generic image for say a pdf file as an attachment.

    So if I use
    echo $attachments->image( 'thumbnail' );
    and the attachement is a pdf, then the generic wordpress image should show.

    Sadly it does not.

    If I have got this wrong… then how do I get the generic image to show?


  2. Jonathan Christopher
    Plugin Author

    Posted 3 years ago #

    Hi Graham, you're right. Currently the plugin will not fall back to the generic icon but I'll make sure that it does in 3.0.6. In the short term if you'd like to do things a bit more by hand you can use the Attachment ID that's returned and send it to wp_get_attachment_image_src with the last parameter being true.

  3. Jonathan Christopher
    Plugin Author

    Posted 3 years ago #

    This has been resolved in 3.0.6, thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Attachments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.