Show Posts After Datetime
-
Hi there!
I’m trying to display postings that have a deadline past the current datetime (so, avoid showing past postings). I know how to display the posts past the current date:
[pods name="job" template="Job Listings" orderby="deadline" where="CAST(deadline.meta_value as DATE) BETWEEN CURDATE() and '2023/01/01'"]
And this is what I was trying to get the posts past the current datetime:
[pods name="job" template="Job Listings" orderby="deadline" where="deadline.meta_value BETWEEN CURRENT_TIMESTAMP() and '2023-01-01 11:59:59'"]
I thought I might not have to cast the value because I’m working with the raw data…but is this correct? Anyway, if you could let me know where I’m going wrong with my query that would be awesome.
Thanks so much! I love your plugin by the way, it’s been super fun to work with.
Have a great day!
Leanne
The page I need help with: [log in to see the link]
- The topic ‘Show Posts After Datetime’ is closed to new replies.