Posts 2 Posts
Orderby number of connections? (2 posts)

  1. clarklab
    Posted 3 years ago #

    This might be a simple one, but I dug through the docs and couldn't find specifically what I needed. Is there a way to order a query by the number of connections? I'm using p2p to manage RSVPs for sessions at an event, and I'd like to order the events by the number of users connected.

    I saw info about ordering by post meta or by connection meta, but I wasn't sure how to tackle ordering by the number of users attached. Help?


  2. scribu
    Plugin Author

    Posted 3 years ago #

    You'll need to fiddle with the raw SQL to get this working.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Posts 2 Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic