sort results

This topic contains 4 replies, has 2 voices, and was last updated by pixelapixel pixelapixel 4 years, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14858
    pixelapixel
    pixelapixel
    Participant

    Hello!
    I want to sort the results with a custom field, but I am not ordered.

    Attachments:
    You must be logged in to view attached files.
    #14863
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    It’s because that is not a “simple” custom field, but repeater reference field (sub field), which is used in row element within the content. This means that this field does not have a single value for a post, but is used with multiple row items referenced to the post. Therefore it is impossible to order by a sub field, which has no direct relation to the actual post type object, but to the repeated row objects related to the actual post object.
    Ordering by custom field will only work with fields that actually store values and not references to multiple items – any fields that is not a repeater field.

    Unfortunately I don’t think this is possible in any ways.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #15080
    pixelapixel
    pixelapixel
    Participant

    the captured upload was not correct. Sorry!
    I want to sort the search with a custom dropdown field for years.
    Nor is it possible?

    #15107
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    If the field is not a repeater reference field, but a simple text field (like text, textarea etc..) then it will work.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #15112
    pixelapixel
    pixelapixel
    Participant
    You cannot access this content.
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.