Support

Account

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…