How to Programmatically Populate a WordPress Template
Curtis McHale
I haven't had to do this yet, but seems to be a pretty easy thing to do with Tom's code.
News and insights about WordPress and its ecosystem by Post Status staff and contributors for our members and the WordPress community.