Home › Forums › General Issues › Best way to use ACF in Artist/Artworks relationship › Reply To: Best way to use ACF in Artist/Artworks relationship
John, you are right. Since im getting the value of the SERIES post type relationship field, they are indeed classified as in the admin : $series = get_field(‘serie_artist’);
But, for the ARTWORKS, that are listed under each SERIES, i guess it’s not respecting the order, because i’m doing a get_post :
$oeuvres = get_posts(array(
'post_type' => 'artworks',
'post_status' => 'publish',
'meta_query' => array(
array(
'key' => 'art_serie',
'value' => $serie->ID,
'compare' => 'LIKE'
)
)
));
Do you see a solution to get the Artworks respect the order of the relationship field? Or is it not feasible?
I hope i’m clear enough…
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.