Newsletters

‘attachment’, // search only attachments (media files)
‘cat’ => ‘9’, // from category #2
‘numberposts’ => -1 // unlimited results
);
$medias = get_posts($args);
$cols = 0;
// Now you can loop through $medias array and list the files! :)
if ($medias) {
foreach ($medias as $post) {
setup_postdata($post);
echo “

“;
$cols = $cols + 1;
if($cols == 1){
echo “

“;
$cols = 0;
}
}
}
?>

Herrera Newsletters  
“;
the_attachment_link($post->ID, false);
echo “