• Resolved paulcham

    (@paulcham)


    Hey,

    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.

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    How do I get access to the custom fields inside my candidate records?

    Thanks,
    Paul

    https://www.ads-software.com/extend/plugins/posts-to-posts/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Posts 2 Posts] Nested loop probem’ is closed to new replies.