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>
                            <?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 echo 'text7'; ?>

    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