[Plugin: Posts 2 Posts] Nested loops relating to one CPT
I have 3 custom post types: Blurb, Writer, and Article
I have 3 p2p’s set up:
Blurb to Writer
Blurb to Article
Writer to Article
On the single.php of Article, I want to show a list of all the Blurbs related to that Article, separated by Writer:
– Blurb a
– Blurb b
– Blurb c
– Blurb d
I can do a single loop of any combination, but trying to nest it so I loop through each article’s writer then each writer’s blurb related to the article has been frustrating. Any ideas?
Thanks for any help
- The topic ‘[Plugin: Posts 2 Posts] Nested loops relating to one CPT’ is closed to new replies.