What do you mean when you say it doesn't work with postbit_attachment? You need to get it to work with that hook because that's inside a loop that goes through each attachment, and without some kind of loop you're only ever going to see it once (although I suppose if you knew the limit was 2 attachments, you could just put the code in postbit_legacy twice).
Also, are flv and mp4 the two attachments you want to embed? If so than you have to remove the '!' from in front of 'in_array' in the plugin code.
|