Image widget (using media uploader)
-
Hi Greg
I wrote an image widget that uses the wp native media manager and works with pagebuilder, I have no real intention of releasing it as I don’t have time to support this sort of thing, however i’m happy to let you have the code if you wish to use it as a basis for a widget.
I notice that in … function form($instance) … instance isn’t ever set, I think you are using your own code to retrieve and save form values? this did make it a little more complex than necessary (using a hidden field to save the thumnail image, combined with javascript on widget load to render the current thumbnail.
Anyway, code is here: http://pastebin.com/95tuetPc
The topic ‘Image widget (using media uploader)’ is closed to new replies.