Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach($pdfs as $pdf){
- //Set the first field for check and use
- $field = get_field($pdf);
- //Set the second field
- $field2 = str_replace('pdf', 'pdf_name', $pdf);
- //If field is set then echo
- if($field) {
- echo "<li><img src='wp-content/themes/peachment/images/pdf.png' /><a href='"
- . $field . "'>" . get_field($field2) . "</a></li>";
- }
- }
Add Comment
Please, Sign In to add comment