跳到内容

WP REST API – Filter posts date wise using given column

v0.1

Vignesh Sundar · 2017年11月9日 上架

In WordPress 4.7, Posts cannot be filtered based on modified, modified_gmt, date_gmt fields.

正在使用
20+
评分
暂无
累计下载
3,119
最近更新
2017年11月9日
需要 WordPress 4.7+已测试到 4.8.35

贡献者

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums