WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Posts 2 Posts] After updating to 1.4.1 get_connected doesn't work

[Resolved] [Plugin: Posts 2 Posts] After updating to 1.4.1 get_connected doesn't work

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author scribu
    Member

    @scribu

    ‘chain’ is not a valid parameter anymore (and never should have been). Use ‘any’.

    If that doesn’t work, call set_direction() manually:

    $objects = p2p_type( 'object_to_chain' )->set_direction( 'to' )->get_connected( 'any', $args, 'abstract' );
    Marko Heijnen
    Participant

    @markoheijnen

    chain was a post type and yes it was wrong. That code works perfect

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Posts 2 Posts] After updating to 1.4.1 get_connected doesn't work’ is closed to new replies.