Ticket for: Combo Blocks
0
Matus Michael
How can I enter a valid date that will be calculated. I tried to put this in page template:
$today = getdate();
$args = array(
'date_query' => array(
array(
'year' => $today['year'],
'month' => $today['mon'],
'day' => $today['mday'],
),
),
);
$actual_date1 = date("Y-m-d",mktime(0, 0, 0, $today['mon'], $today['mday']-7, $today['year']));
and use in "Value" - $actual_date1 or $args, but not works.
2 Subscribers
Submit Answer
1 Answers
Best Answer
0
Welcome to our forum.
I am not sure what are you trying to do and how your code will work with our plugin, could you please explain little more, hope i can help you.
Regards
Advance Query
Hello,
I have this on advance query settings:
Group Query
Relation: AND
Key: _EventEndDate;
Value: 2020-10-05 -> now as string. I want to put here $actual_date1 or $args if needs array
Compare: >;
Type: -> nothing
I used the shortcode (
Thank you