• Resolved Graham Stacey

    (@graham-stacey)


    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://ww.wp.xz.cn/extend/plugins/attachments/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jon Christopher

    (@jchristopher)

    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.

    Plugin Author Jon Christopher

    (@jchristopher)

    This has been resolved in 3.0.6, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Generic Image – again!’ is closed to new replies.