Home Forums Add-ons Repeater Field Query posts with ACF values from a subfield


Query posts with ACF values from a subfield

  • Hi, is there a way to query posts if values of relationship inside a repeater matching with the page id?

    On CPT ‘recipes’ – repeater is listing people recommending the recipe, I’m unable to use the RELATIONSHIP outside REPEATER field as I need to include a comment from this person. So the structure looks like this REPEATER=’people_recommended_quotes’ with RELATIONSHIP=’person’ and TEXT=’comment’

    Would that be the right logic for listing recipes that person recommended alongside related comment? CPT people post - recommeded


  • $documents = get_posts(array(
    ‘post_type’ => ‘document’,
    ‘posts_per_page’ => -1, //add this line

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.