Stuck on image in an Advanced Custom Field loop

Question
  <?php

  // check if the repeater field has rows of data
  if( have_rows('tool_card') ):

    // loop through the rows of data
      while ( have_rows('tool_card') ) : the_row();

          // display a sub field value
          the_sub_field('title');

          <img src="<?php the_sub_field('tool_image');?>">

      endwhile;

  else :

      // no rows found

  endif;

  ?>

The above image doesn’t load when using the plugin Advanced Custom Fields…

I know I am doing something a bit dumb but I can’t figure it out. If anyone is familiar with the plugin I’d really appreciate a pointer here…

Thanks

All solutions VERY welcomed, thank you

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/stuck-on-image-in-an-advanced-custom-field-loop/">

Stuck on image in an Advanced Custom Field loop</a>
0
henry 8 months 0 Answers 53 views 0

Leave an answer