You can’t get the values for an image attached to a post because the meta values for an image are attached to the image. You must to a second get_post_meta supplying the attachment ID as the post id. The attachment ID is what is seen for the image value. $image_meta = get_post_meta($attachment_id);
Hope that helps someone
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users