Home › Forums › ACF PRO › List all entries from a custom field › Reply To: List all entries from a custom field
can you try this so we can narrow things down.
while ($query->have_posts()): $query->the_post();
// because the image value is saved as attachment_id
$imgElement = get_field('character_image', get_the_ID());
$imgSrc = wp_get_attachment_image_src($imgElement, 'full');
echo "the image - ".$imgElement."<br>";
echo "the full size image src - ".$imgSrc;
endwhile;
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.