function sfhiv_document_shortcode($atts, $content = null) { global $post; extract(shortcode_atts(array('link' => false, 'title' => false, 'replace_content' => false), $atts)); if ($replace_content) { $content = $replace_content; } return sfhiv_format_document($link, $title, $content); }
<li id="post-<?php echo the_ID(); ?> " <?php post_class("list-item"); ?> > <?php echo sfhiv_format_document(wp_get_attachment_url(), get_the_title()); ?> </li>