<?php global $post; $policyGuidlinearray = get_post_meta($post->ID, 'policies-and-guidelinespdf', true); foreach ( array_reverse($policyGuidlinearray) as $policyGuidreverse ) { $policyGuidpdf = wp_get_attachment_url($policyGuidreverse['policies-and-guidelines-pdf']); ?> <li><a href="<?php echo $policyGuidpdf; ?>" target="<?php the_cfc_field( 'policies-and-guidelinespdf','policies-and-guidelines-pdf-open-in-new-tab', false, $key ); ?>" class="fileLink pdf" ><?php echo $policyGuidreverse['policies-and-guidelines-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