Title: WP REST API &#8211; Filter posts date wise using given column
Author: Vignesh Sundar
Published: <strong>2017 年 11 月 9 日</strong>
Last modified: 2017 年 11 月 9 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/wp-rest-api-filter-posts-date-wise-using-given-column/assets/
icon-256x256.png?rev=1761493)

# WP REST API – Filter posts date wise using given column

 作者：[Vignesh Sundar](https://profiles.wordpress.org/vigneshsundar/)

[下载](https://downloads.wordpress.org/plugin/wp-rest-api-filter-posts-date-wise-using-given-column.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-rest-api-filter-posts-date-wise-using-given-column/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-rest-api-filter-posts-date-wise-using-given-column/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/wp-rest-api-filter-posts-date-wise-using-given-column/#developers)

 [支持](https://wordpress.org/support/plugin/wp-rest-api-filter-posts-date-wise-using-given-column/)

## 描述

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
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

「WP REST API – Filter posts date wise using given column」是开源软件。 以下人员
对此插件做出了贡献。

贡献者

 *   [ Vignesh Sundar ](https://profiles.wordpress.org/vigneshsundar/)

[帮助将「WP REST API – Filter posts date wise using given column」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-rest-api-filter-posts-date-wise-using-given-column)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-rest-api-filter-posts-date-wise-using-given-column/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wp-rest-api-filter-posts-date-wise-using-given-column/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/wp-rest-api-filter-posts-date-wise-using-given-column/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-rest-api-filter-posts-date-wise-using-given-column/)。

## 额外信息

 *  版本 **0.1**
 *  最后更新：**9 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **4.8.28**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-rest-api-filter-posts-date-wise-using-given-column/)
 * 标签
 * [filters](https://cn.wordpress.org/plugins/tags/filters/)[post filter](https://cn.wordpress.org/plugins/tags/post-filter/)
   [WordPress API](https://cn.wordpress.org/plugins/tags/wordpress-api/)[Wordpress REST API](https://cn.wordpress.org/plugins/tags/wordpress-rest-api/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-rest-api-filter-posts-date-wise-using-given-column/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/wp-rest-api-filter-posts-date-wise-using-given-column/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-rest-api-filter-posts-date-wise-using-given-column/reviews/)

## 贡献者

 *   [ Vignesh Sundar ](https://profiles.wordpress.org/vigneshsundar/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-rest-api-filter-posts-date-wise-using-given-column/)