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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.