I'm trying to create a page that displays a list of posts by name, and then, under each name, a list of connected posts. I can get it to work with the following code but I'd like to also display some of the custom fields in the connected posts. Currently, I can only access a list of links using
p2p_list_posts( $post->connected );.
Here's my code that is working. Within each office, I list the candidates. Each candidate post has custom fields I'd like to access and display.
How do I get access to the custom fields inside my candidate records?