Skip to content

Instantly share code, notes, and snippets.

@daum
Created March 5, 2013 12:46
Show Gist options
  • Save daum/5090086 to your computer and use it in GitHub Desktop.
Save daum/5090086 to your computer and use it in GitHub Desktop.
<?php
$attachments = $post->getPostAttachments();
foreach($attachments as $attachment)
{
echo $attachment->getId().' '.$attachment->getName()."\n";
}
//Output
// 1 d name
// 2 c name
// 3 a name
// 4 b name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment