• I am a WP newbie and just found out this amazing plugin!

    I have two custom post types: ‘Model Homes’ and “Communities”.
    I use P2P to connect them as one-to-many relationship, from Communities to Model Homes. I also assigned a custom field to Model Homes for inventory purposes (true/false) and another custom field (‘city’) to Communities CPT.

    And here’s my question:
    I want to create a page to list all model homes that has status inventory = true in a table format. I can do that part.

    My problem is when I try to show the ‘Community'(and its custom field) that associated to ‘Model Homes’ in the same table. How do I do that?

    This is my code:
    [Code moderated as per the Forum Rules. Please use the pastebin]

    This is the format I want:

    ----------------------------------
    Community  |  Model Home | Price
    ----------------------------------
    North Pole | Igloo       | $10,000
    North Pole | Ice Cube    | $20,000
    South Pole | Penguin     | $12,000
    Equator    | Orangutan   | $23,000
    ----------------------------------

    I try to use p2p_list_posts , but I have no clue how to use it here.
    Please help me and don’t be too harsh to me 🙂 since I’m not a developer…

    Thanks!!!

    http://ww.wp.xz.cn/extend/plugins/posts-to-posts/

The topic ‘[Plugin: Posts 2 Posts] How to display all post connected post in table?’ is closed to new replies.