I’m trying to figure out which way to go with this problem and thought I might get some suggestions from you folks.
This is what I’ve got to start from:
I’ve got a text file and an image file and want to auto-post to a WP site
These files are named identically (besides the extension) so there is example.txt and example.jpg
These files will always be saved in the same location.
What I’ve played with so far:
I’ve tried Postie, and successfully emailed txt & jpg into the WP site. But I would next have to automate the creation of that email, and don’t really want to introduce another independent working script into the mix. Too many pieces tends to make for trouble :slight_smile:
So I’m wondering now, and looking for ideas on how to pursue making WordPress do the work – is there a way I could script WordPress to create post, import text file, attach jpg?
I started now looking at this: http://codex.wordpress.org/Function_Reference/wp_insert_post
Anyone else have any suggestions – maybe a smarter place to start?