<?php
$rows = get_field('whitepapers');
if($rows) {
echo '<ul class="linkList">';
foreach($rows as $row) {
$thisTitle = trim($row['whitepaper_title']);
if($thisTitle == "") {
$thisTitle = "Download this whitepaper";
}
echo '<li><a href="'.$row['whitepaper_file']['url'].'">'.$thisTitle.'</a></li>';
}
echo '</ul>';
}
?>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.