A few weeks ago, I received an email and comment from a reader searching for an easy method to create WordPress posts and pages using PHP programmatically.
The reader was successfully able to create a WordPress post and page using the tutorial, but shed light on another challenge when creating an automated post:
How does one set a featured image for a programmatically created post?












