How to host different file formats/types for a media attachment without creating multiple attachments?

For a better browser compatibility we often have to maintain multiple format of a media. For example: Image – JPG & WebP Image animated – GIF & WebP Image transparent – PNG & WebP Video – MP4, WebM, OGG Multiple format file of a same media belongs to a single media attachments logically. Having multiple … Read more

Getting media library popup in custom plugin admin page

I’m creating plugin and I need to upload images. And I’m wondering if I can somehow trigger same popup as “add featured image” triggers. Is that possible? If not, how can I make an alternative? Thanks much for answering. 1 Answer 1 There’s a few things to consider, like where you’re putting this… …you didn’t … Read more