I'm trying to set the post thumbnail (featured image) with javascript from an existing image in the media gallery. I would consider a php-based option too I suppose (one that would require clicking update before the images show up).
Some Background
I'm building a site for a music venue with a custom "event" post-type. Most of the time these events are unique, but there are some recurring ideas (for example, open mic night most tuesdays).
I was thinking I'd like to put in a dropdown with some "presets" to populate the add new event
form fields in the backend. It's a cinch (I think) to do this with the the tinymce, and my custom meta fields. The tough part is how to to put an (already uploaded to media library) image into the featured image box programmaticly.
I know I can do make something work on the template end of things, but it would be nice to see that thumbnail pop up in the add new/edit
view.
Thanks!
event
post type. When the option is changed, it will change certain other values on the page: the title, the contents of the tinymce (just text), a "date" meta field, and (hopefully) the featured Image. I'm pretty sure I can change all these values, except I've been stuck on the featured image.