How to add ‘Attachment Display Settings’ in custom Media Library?

Just add

frame: 'post',

to wp.media attributes. There are two types of pre-built frames in WordPress 3.5 – post and select. Select is the default frame type and it is the interface that is created in the custom-header.js file.

The post frame is what appears when we click on the Add Media button while editing posts or pages.

Information from http://shibashake.com/wordpress-theme/how-to-add-the-wordpress-3-5-media-manager-interface-part-2

Leave a Comment