Can you assist me with why the following code does not display the image; all that show up is a small x inside a small box.
When I inspect the element in chrome, it gives me the url path, but not the url with the filename (/site/assets/files/1015/).
For the field 'images', I have maximum files allowed set to '1'.
This is my code snippet for the image:
<?php foreach(page()->children as $posts): ?>
<?php $img = $posts->images;
echo "<img src='$img->url'>"; ?>
<?php endforeach; ?>
Thanks!