BACK TO DIRECTORY

WP REST API – Filter posts date wise using given column

by Vignesh Sundar

0.0
(0 ratings)

In WordPress 4.7, Posts cannot be filtered based on modified, modified_gmt, date_gmt fields.
Using this plugin we can specify the column(any of date, date_gmt, modified, modified_gmt) as query parameter date_query_column to query against value(s) given in before and/or after query parameters.

Usage

Use the date_query_column parameter on any post endpoint such as /wp/v2/posts or /wp/v2/pages in combination with before and/or after parameter.

/wp-json/wp/v2/posts?after=2017-11-08T13:07:09&date_query_column=modified

Plugin Details

Active Installs
20
Total Downloads
2,758
Version
0.1
Requires WP
4.7
Requires PHP
Tested Up To
4.8.30
Added
2017-11-09
Last Updated
2017-11-09 7:08am GMT

Ratings

5
0
4
0
3
0
2
0
1
0