Home › Forums › General Issues › Category images › Reply To: Category images
My bad, i copied and pasted the wrong code. ( i said my custom field is “category_image” but really is “immagine_categoria” same thing…)
$category_image = get_field('immagine_categoria', 'custom_catalog_category_39');
$size = "page-header";
$imgURL = wp_get_attachment_image_src( 39, $size);
var_dump($imgURL);
This returns bool(false)
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.