WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Advanced Custom Fields] relationship field sort order (4 posts)

  1. alturnwall
    Member
    Posted 2 years ago #

    Hello all,

    When you create a relationship field in ACF where you can add multiple items, the items added (shown on the right side of the edit box—see screenshot link below) look like they can be sorted, as the cursor changes to the "move" cursor (i.e., indicating you can drag items around.)

    (See screenshot for relationship field reference.)

    First of all, updating to ACF 3.2.4 looks like it broke the dragging functionality. You used to be able to drag the order of items in the list. Not sure if this is intended or not.

    Regardless, my question is, how do you then use this sort order to display the related items on a page template? I assume it would be an argument in the WP_query array, but I can't quite figure it out.

    I tried

    'order' => 'ASC'

    and

    'orderby' => 'menu_order'

    to no avail. Any other thoughts? Is this even built in functionality? I don't see any reference in any documentation or searching...

    Thanks...

  2. alturnwall
    Member
    Posted 2 years ago #

    This topic was continued on the ACF forum... the thread is here.

  3. lierbag
    Member
    Posted 1 year ago #

    This link 404s.

  4. onesixtwo
    Member
    Posted 1 year ago #

    Thanks for this guys, top stuff

Topic Closed

This topic has been closed to new replies.

About this Topic