Postcards from the Edge(s) of the World

Postcards from the Edge(s) of the World

For times when we were traveling but didn’t necessarily have decent internet access, we created “ePostcards” which let us summarize our journey (but they could be sent out when we had internet).

[insert_php]
//get all files within postcard directory
$uploads = wp_upload_dir(); //array containing upload directory info
$path = $uploads[‘path’]; //path portion of the array
$baseurl = $uploads[‘baseurl’]; // base url e.g. http://myweb.com/…/uploads/
$files = scandir(“$path/postcards”);

//output this using page-postcards.php

[/insert_php]