Snippets of PHP code I have created to help me getting data into WordPress
All code in here is written in PHP and is used in WordPress installations.
For the code to work I usually install the Shortcode Exec PHP plugin by Marcel Bokhorst (https://wordpress.org/plugins/shortcode-exec-php/).
CustomPost.php - Creates custom posts from a XML file and inserts associated image files to that post.
VoucherCodes.php - Reads in a XML file from the Affiliate Window network and displays the latest voucher codes.
VoucherCodesCSV.php - Reads in a CSV file from Affiliate Window and displays the latest voucher codes.
MediFusion.php - Pass it a ASIN and will display details about it and a price comparison table.
Having trouble with Pages? Check out the documentation at https://help.github.com/pages or contact support@github.com and we’ll help you sort it out.