I added a couple of ACF fields relationships in Woocommerce product.
The relationship link to a feature image of another CPT.
In the product background, I have no problem to list and select the image I want:
'post_type' => 'doctor',
'meta_query' => array(
array(
'key' => 'location', // name of custom field
'value' => '"' . get_the_ID() . '"', // matches exactly "123", not just 123. This prevents a match for "1234"
'compare' => 'LIKE'
)
)
Just to add, if you are querying products, you will have to add an inner query with the relationship arguments.
If you need more specifics, let me know.
I have not yet taken a look to the post you sent.
I will tell you if I stuck somewhere…
Thank you for your concern even for support to ACF that is not really yours.
I found out the solution via the link that you posted and everything works fine.
I thank you again for the support that you give all days long and all weeks long.
That’s appreciate.
I will write a tuto or a video to explain how to use the ACF relationship and post it here.
As soon as it will be done, I will post the topic as resolved.