Support

Account

Home Forums Add-ons Repeater Field How to make File repeater Reply To: How to make File repeater

  • Very close to what we need!! Thank you!

    we have use this

    
    <?php 
    if (have_rows('file_repeater')) {
      while (have_rows('file_repeater')) {
        the_row();
        $file = get_sub_field('file_upload');
        ?>
    	<br>
    
    		<img style="width:18px; height:10px;" src="http://www.subshunter.com/wp-content/uploads/2016/01/br.png" />
    		<span><?php echo $title; ?></span>
          	<a href="<?php echo $file['url']; ?>">Download the Document</a>
    		
        <?php 
      }
    }
    ?>
    

    and we get http://prntscr.com/9wmchy
    and we need to show the file name not the Download the Document!

    how can we change that to shows the file name Title?

    For example in this page we have 2 files

    1 and we must get: http://prntscr.com/9wme2s
    2: http://prntscr.com/9wmeqj

    How can we do that?

    Thank you very much again