Adding posts with thumbnail programatically in WordPress
- by rebellion
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)?