Skip to content

get_adjacent_items: More than one connected parents found #434

Open
@imjjss

Description

@imjjss

I registered a many-to-many connection type, from a custom-post-type to itself, sortable=true. Then, I added 3 connections to one post of this cpt.
When I tried $items = p2p_type('steps')->get_adjacent_items($id), I got a warning:
"More than one connected parents found".
var_dump($items) shows the result has 3 elements-- $items['parent'] is the first connection which I think it should be the first child. $items['previous']' and$items['next']are bothfalse`.
Where did I go wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions