WordPress Media Uploader with size select

Posted by Jessica Taylor | Updated on

In this example, we have shared WordPress Media Uploader with size select. You could use the media insertion dialog as shown on the “edit page” site, which adds alignment, link_to and size input fields. To do so add frame: ‘post’ to your options array:

Instead of listening to the “select” event listen to the “insert” event. This code shows how retrieve the additional properties including the size:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers