Want more features on Pastebin? Sign Up, it's FREE!
Guest

Band-naam

By: a guest on Feb 24th, 2014  |  syntax: PHP  |  size: 0.29 KB  |  views: 35  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.         $band_naam = get_field('band_naam');
  3. ?>
  4.  
  5. <?php if( $band_naam ): ?>
  6. <?php foreach( $band_naam as $band_naam ): ?>
  7.         <a href="<?php echo get_permalink( $band_naam->ID ); ?>"><?php echo get_the_title( $band_naam->ID ); ?></a>
  8.                                                                
  9. <?php endforeach; ?>
  10.                                                        
  11. <?php endif; ?>
clone this paste RAW Paste Data