I have a posts with a
Ymd custom date field. I would like messages to:
- Displays publications for which the date has not expired (less than the current date)
- Displays publications that have the same week number as the current day's week number
I realized the first point by doing a
meta_query with the custom date field but I can not find any way to reach the second point with the same custom field as it is a date rather than a week number.
$ args['meta_query'] = table ( board ( & # 39; key & # 39; => & # 39; date_held & # 39; & # 39; value & # 39; => $ Today, & # 39; compare & # 39; => & # 39;> & # 39; ) )
Is it possible to do this without adding another custom field by changing the date of the current custom field to a week number, then comparing it in the field