Adding posts with thumbnail programatically in WordPress

Posted by rebellion on Stack Overflow See other posts from Stack Overflow or by rebellion
Published on 2010-04-20T09:52:54Z Indexed on 2010/04/27 7:53 UTC
Read the original article Hit count: 385

I know I can use the wp_insert_post() function in WordPress to add posts programatically, but I want to add posts with a thumbnail, and for that matter, also resize/crop the post photo to the correct WordPress sizes.

Is all this possible programatically, or do I need to do some work manually (i.e. the resizing/cropping)?

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about wordpress-plugin