This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

sorting results

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25535
    jonhf89jonhf89
    Participant

    I have a taxonomy called bmd which represents board meeting dates. Each element is formatted like these (2020-1-27, 2019-7-14). I am capturing that value in a text field using acf. I am trying to get the results to sort by this field-newest first (which since it needs to be a taxonomy I cannot make it a date field type). Do you have any suggestions how to make this work? Thank you.

    #25537
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    The only way to make this work properly is via custom coding – possibly using the ‘asp_results’ hook to modify the results array order. Taxonomies are stored as separate object types, so I’m afraid we cannot integrate such feature.

    If the taxonomies were created in the same order as the dates, then grouping may work. Use the ‘Use all from {taxonomy}’ option: https://i.imgur.com/MNylzo8.png

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.