Guest User

Untitled

a guest
Feb 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. <?php
  2. $images = get_sub_field('select_header_images', 'option');
  3. $rand = array_rand($images, 1);
  4.  
  5. if( $images ):
  6. echo $images[$rand]['url'];
  7. endif;
  8. ?>
Add Comment
Please, Sign In to add comment