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; ?>') ...
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.