Home › Forums › General Issues › Custom Image Sizes › Reply To: Custom Image Sizes
Sorry to piggyback off this thread, but I cannot create a new one.
I’m having the same problem. I’ve tried everything in this thread (and others). No image shows up on the front end.
Here’s what I have:
<?php $attachment_id = get_field('book_cover');
$size = "thumbnail"; // (thumbnail, medium, large, full or custom size) wp_get_attachment_image( $attachment_id, $size );
?>
I have tried image object, url, and ID in the settings, but I still get nothing.
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.