Related posts based on ACF Relationship value
-
Hi,
On a CPT single, i wonder how to display related posts based on an ACF Relationship value of the current post.
Here’s the schematic:
- A single post displays an artist (Artists CPT).
- After the artist presentation, the post shows the record(s) of the artist (Records CPT), linked by an ACF Relationship field.
- Now, at the bottom of the artist post, i’d like to show related artists playing on the same record(s)
So, i have to loop through the Artists posts, compare their records and display artists names who have common records.
I looked after the Pass function but not sure how to do this.
Any hint would be welcome.Thanks!
The topic ‘Related posts based on ACF Relationship value’ is closed to new replies.