Home › Forums › Add-ons › Repeater Field › get_field occassionally returning string with repeater field › Reply To: get_field occassionally returning string with repeater field
Thank you, I have tried that and this does help a little – now the file is loaded in and the repeater fields appear correctly. Thank you!
To be clear what I have tried is replacing the
$url = $_SERVER... code block with the one you provided, and also deleting the
pre_get_posts code block (this step makes no major difference).
However, the issue of the thumbnails loading in is still present, unfortunately.
The relevant code for this is;
<?php echo 'text6'; ?> <div class="img-thumbnail"> <a href="<?php the_permalink() ?>"> <div class="price-per-person"> <span>FROM <br/><strong><?php echo get_field("price_from") ? "$" . get_field("price_from") : "$" . get_field("price_per_person") ?></strong> <br/>pp</span> </div> <?php $image = wp_get_attachment_image_src(get_field('event_thumbnail'), 'full'); ?> <img src="<?php echo $image; ?>" alt="<?php echo get_the_title(get_field('event_thumbnail')) ?>" /> <?php ?> </a> <?php echo 'text7'; ?> </div> </div>
All the text (the titles & price per person etc) loads in fine, as does all the textX tests, however there is still no image or thumbnail.
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!