• Hi,
    I’m interested in setting up a relationship between events using Event Espresso, so I can list related events on my event. is that possible using post2post?

    This is how I would guess I would setup the relationship. But how do I get the relationship admin box to come up?
    p2p_register_connection_type( array(
    ‘name’ => ‘eventespresso_to_eventespresso’,
    ‘from’ => ‘eventespresso’,
    ‘to’ => ‘eventespresso’,
    ‘admin_column’ => ‘any’,
    ‘cardinality’ => ‘many-to-many’
    //
    ) );

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter [email protected]

    (@aaronrossanocomau)

    I’ve noticed that I can turn on the custom post types from the template options. But when I create a post using the event section, it doesn’t have any of the options of the ones I create from the event espresso section and it doesn’t have the post2post admin box for the relationship after setting the relationship up for custom post type: espresso_event

    Thread Starter [email protected]

    (@aaronrossanocomau)

    i think i got it.
    event espresso > template settings > use custom post types feature = yes
    i still haven’t properly tested, but managed to get two events in relationship. trying to get the templates working now which will allow me to test if the relationship on the front end works smoothly.
    p2p_register_connection_type( array(
    ‘name’ => ‘espresso_event_to_espresso_event’,
    ‘from’ => ‘espresso_event’,
    ‘to’ => ‘espresso_event’,
    ‘reciprocal’ => true,
    ‘admin_column’ => ‘any’,
    ‘cardinality’ => ‘many-to-many’
    //
    ) );

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Posts 2 Posts] Post2post with Event Espresso’ is closed to new replies.