Create Relationships - P2 - Using Meta Box + Bricks | Meta Box Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024

ความคิดเห็น • 8

  • @TheTechBear
    @TheTechBear หลายเดือนก่อน

    This video was very helpful and exactly what I needed. However, I am having an issue when using a relationship in the query loop. There are no sorting options, and I can not find any way to sort the output. Is there a way to sort when using the relationship in a query loop? Any help will be greatly appreciated. Thank you!

    • @MetaBoxWP
      @MetaBoxWP  หลายเดือนก่อน

      Sorry for the late reply. We spent some days finding an answer to your question. But until now, there has been no way to do it with Bricks.

  • @robertgood6828
    @robertgood6828 11 หลายเดือนก่อน

    Great video. One question: How do you sort the end result. Say you want them listed alphabetically, or by date?

    • @MetaBoxWP
      @MetaBoxWP  11 หลายเดือนก่อน

      you can choose Order By in the Query option

  • @MatthiasRoderstein
    @MatthiasRoderstein 10 หลายเดือนก่อน

    Sorting by date usually takes the published date from post. But for such a course listing the main sort order (from visitor perspective) is course start date. Is that possible with Bricks and Meta Box? Or is coding needed?

    • @MetaBoxWP
      @MetaBoxWP  10 หลายเดือนก่อน +1

      In the settings of Query Loop, you can set:
      - Type: Posts
      - Post type: (e.g. Courses)
      - Order by: Meta Value
      - Order meta key: the field ID you want to reorder (e.g. start_date)
      - Order: you can choose 'Ascending' or 'Descending' as you want
      Please try it.