I’m trying to add a menu item on Media Uploader of WordPress.
It is like this screenshot:
Basically, it should have the same functionality of Create Gallery
with just different shortcode output.
I’ve search Google for hours now and this has the closest thing of what I want: https://gist.github.com/Fab1en/4586865
But it has an error which I can’t figure out. (I have no knowledge on Backbone.js
)
// create an input
this.input = this.make( 'input', { // error line
type: 'text',
value: this.model.get('custom_data')
});
Uncaught TypeError: undefined is not a function
I think, if this will be fixed, everything will be good to go…
Is there anyone who have tried this one? I need some help.
Try this code: