<?php global $post; $dividendinfoarray = get_post_meta($post->ID, 'unpaid-dividends-pdfs', true); foreach ( array_reverse($dividendinfoarray) as $dividendinfoarrayreverse ) { $dividendpdf = wp_get_attachment_url($dividendinfoarrayreverse['unpaid-dividends-pdf']); ?> <li> <a class="fileLink pdf" href="<?php echo $dividendpdf; ?>" target="_blank"> <?php echo $dividendinfoarrayreverse['unpaid-dividends-pdf-title']; ?> </a> </li> <?php } ?>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter