Sorting on date in query loop fails in Bricks Builder

Support Meta Box AIO Sorting on date in query loop fails in Bricks Builder

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #46373
    FredrikFredrik
    Participant

    I'm trying to sort a query loop according to a date field with ID date_start, it's within a group with ID praktisk_info (if I select i from a drop-down menu it has this format: {mb_oppen_kurs_praktisk_info_date_start}. However it just breaks the query loop. Bricks Support says it's suppose to work, and refered me to your support.

    #46386
    FredrikFredrik
    Participant

    It works when I use a date field NOT in a group. How can I call upon the date field within a group in Bricks?

    #46400
    PeterPeter
    Moderator

    Hello Fredrik,

    I'm afraid that it is really hard to do so. The group is used for storing data (sub-fields value) not for querying by sub-fields (sort or filter) value because the value of the group saved in the database is a serialized array.
    See more at https://metabox.io/create-group-of-custom-fields-with-meta-box-group/#how-does-the-meta-box-group-save-data.

    You should use the top field for sorting or filtering the post.

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