WordPress.org

Forums

[Plugin: Posts 2 Posts] admin box with orderby connection (3 posts)

  1. ingegni
    Member
    Posted 2 years ago #

    Hi,
    I have installed this plugin v. 1.3.1 and it's perfect.

    I have two custom post type: "port" and "boat".
    I set a connection named "boat_to_port".
    In the admin box of each port I want to display all boats connected orderby p2p_id.

    Is it possible?

  2. scribu
    Member
    Posted 2 years ago #

    Ordering connections by p2p_id is not reliable. You should just set 'sortable' => true.

    See https://github.com/scribu/wp-posts-to-posts/wiki/Connection-ordering

  3. ingegni
    Member
    Posted 2 years ago #

    Many thanks scribu!

Topic Closed

This topic has been closed to new replies.

About this Topic