Support

Account

Home Forums Front-end Issues Display images from url in Text field Reply To: Display images from url in Text field

  • Not sure if this will cause your issue, but the first think to change is that you need to get the repeater before you use have_rows().

    
    $images = get_field('images');
    if (!empty($images)) {
      $count = count($images);
    }
    if (have_row('images')) {
       // your code continues
    

    The next issue is that you are attempting to use a text field like an image field. A text field only returns the value entered into it

    
    $image = get_sub_field('image');
    ..... background: url('<?php echo $image; ?>') ...