Home › Forums › Add-ons › Repeater Field › get_field occassionally returning string with repeater field › Reply To: get_field occassionally returning string with repeater field
Hi John,
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[0]; ?>" 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.
Many thanks
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.