Support

Account

Home Forums ACF PRO add related content to get_posts query Reply To: add related content to get_posts query

  • There isn’t any way to do this directly in a single query. You need to first do the query that you’re doing. Then loop through the results of that query to get the related posts from the acf fields and then do either merge those results into the results of the first query or collect all the post IDs of the first query and from getting the related posts and do another query using that list.