Support reply may delay for 3 weeks due to corona virus outbreak, please send us email to support@pickplugins.com
Ticket for: Post Grid
0
Matus Michael
Oct 05, 2020 11:09 AM 1 Answers
Member Since Sep 2020
Subscribed Subscribe Not subscribe
Flag(0)

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
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
PickPlugins
Oct 05, 2020
Flag(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

Matus Michael
- Oct 06, 2020 02:26 PM
Flag (0)
0

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 ([post_grid id='12567']) in the page.

Thank you

Sign in to Reply
Replying as Submit