#MetaBox Setting
Post Types: Premium Ad(id:ad)
Custom Fields:
Ad Settings(id:ad-setting)
Ad Period(id:ad-date, type:Group)
Start Date(id:ad-date-start, type:Date Picker)
End Date(id:ad-date-end, type:Date Picker)
#Beicks > Query loop > META QUERY Setting
Relation: OR
[META QUERY 1]
Meta key: mb_ad_ad-date_ad-date-start
Meta value: {current_date}
Compare: Lesser or equal
Type: DATE
[META QUERY 2]
Meta key: mb_ad_ad-date_ad-date-end
Meta value: {current_date}
Compare: Greater than or equal
Type: DATE
ββββββββββββββββββββββββ-
I set it up as above.
I want to display only the Premium Ad posts that are currently active based on their ad period (start and end dates).
However, itβs not working as expected. Even when I try setting just [META QUERY 1], the posts do not appear in the list.
I have tried all of the following Meta Key formats, but none of them worked:
-
mb_ad_ad-date_ad-date-start
-
ad_ad-date_ad-date-start
-
ad-date_ad-date-start
-
ad-date-start
Could someone please tell me what I might have configured incorrectly, or suggest another working approach to achieve date-based filtering with MetaBox and Bricks Query Loop?
Thank you very much in advance!