Support

Account

Home Forums ACF PRO Category images Reply To: Category images

  • Hi John,

    Thanks for your suggestion, but it isn’t working unfortunately.
    This is my current code.

    
      <?php if (get_row_layout() === 'diensten'): ?>
        <div id="diensten-thumbs">
        <?php foreach ($term_array as $row): ?>
          <div class="dienst" style="background-image: url(<?php the_sub_field('image', 'category_'.$row->term_id) ?>)">
            <h3><?php echo $row->name ?></h3>
          </div>
        <?php endforeach; ?>
        </div>
      <?php endif; ?>