I am currently inserting content scraped from the web into wordpress posts via wp_insert_post. The content in question has images and I'd like to assign them to a post as a gallery, if possible.
anyone know how to do this?
I am currently inserting content scraped from the web into wordpress posts via wp_insert_post. The content in question has images and I'd like to assign them to a post as a gallery, if possible.
anyone know how to do this?
http://codex.wordpress.org/Function_Reference/wp_insert_attachment
I think that's what you are looking for :)
thank you, jocken!
This topic has been closed to new replies.