Home › Forums › Add-ons › Repeater Field › Select a specific value from an image object in a repeater field › Reply To: Select a specific value from an image object in a repeater field
I was actually able to solve this with a completely WP method.
Since I had the user’s chosen image ID stored in the user meta I was able to get the URL using that ID
<?
// Get the file id
$image_id = get_user_meta($userid, 'meta_field_key', true); // CHANGE TO YOUR FIELD NAME
// Get the file size
$image_url = wp_get_attachment_image_src( $image_id, 'thumbnail' ); // Set image size by name
// Get the file url
$avatar_url = $image_url[0];
?>
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.