10
I know I can use the wp_insert_post() function in WordPress to add posts programmatically, 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 programmatically, or do I need to do some work manually (i.e. the resizing/cropping)?