WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
[resolved] Sort connected posts with a reciprocal relationship (2 posts)

  1. web559
    Member
    Posted 2 years ago #

    Suppose we have a connection between post types 'actor' and 'movie'. Is it possible to satisfy both of these requirements?:

    1. Make connection metabox visible on both 'actor' and 'movie' edit screens.

    2. On 'movie' screen, connected actors are sortable/reorderable.

    My understanding is that #1 is only possible if the connection is reciprocal, and #2 is only possible if it's not. Is there any way to have it both ways?

    http://wordpress.org/extend/plugins/posts-to-posts/

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    Using Posts 2 Posts 1.1.5:

    1. That's the default behavior, regardless of 'reciprocal'.

    2. Sure, use 'sortable' => 'from' or 'sortable' => 'to':

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic