Support

Account

Forum Replies Created

  • Hello and thank you for everything!
    i have one more question and i hope have solution!

    We need here http://prntscr.com/a0xqjw to import a counter to shows how many clicks happen in each file! can we do that somehow?

    Thank you again!

  • Thanks you very much for you help! we used your code but something happen bad and shows error page so we used this and work

    
    <?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/eng.png" /> <span>[English]</span>
    		<span><?php echo $title; ?></span>
          	
    		<a href="<?php echo $file['url']; ?>"><?php echo $file['filename']; ?></a>
    		
        <?php 
      }
    }
    
    ?>
    

    we dont know what happen wrong but with your instructions that worked like charm!! http://prntscr.com/9xcuth

    Thank you very very much again!! 🙂

  • 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

  • we have try this

    
    <?php 
    if (have_rows('file_repeater')) {
      while (have_rows('file_repeater')) {
        the_row();
        $file = get_sub_field('file_upload');
        echo $file['url'],'<br />';
      }
    }
    ?>
    
    

    and we get that http://prntscr.com/9wcw5p in landing page! so we need that urls to be links for someone can download them! how can we do that!

    Thank you very much

Viewing 4 posts - 1 through 4 (of 4 total)