How to set date parameter in post grid?

rerdman
Feb 08, 2017 11:12 AM 1 Answers General
Member Since Dec 2016
Subscribed Subscribe Not subscribe
Flag(0)
I'd like to limit my post grid so that it only queries posts in a certain date range. In other words, if a post is more than 30 days old it will no longer be queried. I'm guessing I could do this under the Query Post tab in the More Query Parameter field but I'm not sure what arguments to use. Does anyone have any idea how to do this? Thanks in advance for the help!
2 Subscribers
Submit Answer
Please login to submit answer.

1 Answers
Sort By:
Best Answer
0
PickPlugins
Feb 08, 2017
Flag(0)

Welcome to our forum.

I understand your issue, but “More Query Parameter” field seems still not ready for complex query,

But there is filter hook for query argument so you can add your own parameter, please see the documentation

Filters – post_grid_filter_query_args

https://codex.wordpress.org/Class_Reference/WP_Query#Date_Parameters

Let me know for more help.

Regards

Sign in to Reply
Replying as Submit

Please use https://imgur.com/upload to upload your screenshot and share url here.
You can't upload any files or attachment to our server directly for security reason, you can use 3rd party website and share file url here. here is the top file sharing website you can use.

Please login to see your tickets