ACF Relationship loop display by custom taxonomy term

Hi @danaskallman, I was thinking about this a bit more today and I realized that the data within an ACF relationship field is already saved as an array, so there wouldn’t even be a need to use the List tag or something to create the array, you could just pass the field directly to the id parameter. So something like this would probably work for you (you might have to swap out resources since I’m not sure what post type you’re looping through):

<Loop type=resources id="{Field related_resources}" taxonomy=resource-format terms=video orderby=date order=desc>
  <li><a href="{Field url}"><Field title /></a></li>
</Loop>

Let me know if that works for you!

1 Like