[wp-hackers] Custom Post Types and Media Attachments

Paul paul at codehooligans.com
Fri Dec 10 16:31:22 UTC 2010


On Dec 10, 2010, at 10:31 AM, Becky Resler wrote:

> I am currently working on a project that utilizes a custom post type
> with custom meta boxes. I have removed the default content editor for
> this custom post type ['supports' => array('title', 'thumbnail')]. In
> one of the custom meta boxes, I have a textarea with a WYSIWYG editor.
> I would like to be able to embed images into the content of this
> textarea using the WordPress Media Library. I was able to add the
> *Upload/Insert* icons above the editor by using some code I found in a
> tutorial online.

Becky, I don't have a solution but wondering why if you are creating a custom post type you chose not to use the default WYSIWYG editor available? Why go through the trouble of creating your own meta box which would be the same thing?

P-



More information about the wp-hackers mailing list