Support

Account

Home Forums Add-ons Repeater Field Repeater field with post object – sort by post object custom field

Unread

Repeater field with post object – sort by post object custom field

  • Kind of a strange one here! I have a repeater field where one of the subfields is a relationship field with a custom post type.

    I’ve got everything working and displaying perfectly, except, I’d like to sort the repeater by a custom field of the post object subfield.

    Example:

    row 1:
    post_id = 18553
    custom_field on that post_id = ‘this’

    row 2:
    post_id = 18620
    custom_field on that post_id = ‘that’

    row 3:
    post_id = 19784
    custom_field on that post_id = ‘this’

    I’d like the repeater to display with:

    THIS
    18553
    19784

    THAT
    18620

    I’ve looked through all of the sorting info and I’m a bit lost as to how to apply the sorting to a get_field of a sub_field in a repeater. Thanks for any help you can provide!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.