diff --git a/openphoto-wordpress.php b/openphoto-wordpress.php index 288b19e..10393f2 100644 --- a/openphoto-wordpress.php +++ b/openphoto-wordpress.php @@ -198,13 +198,9 @@ class WP_OpenPhoto { --> '; echo '
' . print_r($photos,true) . ''; die(); - $unique_id = intval($photo->dateUploaded); - + foreach( $photos as $unique_id => $photo ) { + echo '