WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Graham Stacey
    Member
    Posted 1 year 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.
    G

    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?
    Thanks

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

  2. Jonathan Christopher
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

    This has been resolved in 3.0.6, thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.