[WordPress] 外掛分享: WP REST API – Filter posts date wise using given column

前言介紹

  • 這款 WordPress 外掛「WP REST API – Filter posts date wise using given column」是 2017-11-08 上架。
  • 目前有 20 個安裝啟用數。
  • 上一次更新是 2017-11-09,距離現在已有 2733 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.7 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

vigneshsundar |

外掛標籤

filters | post filter | WordPress API | WordPress REST API | filter modified posts |

內容簡介

在 WordPress 4.7 中,文章不能根據 modified, modified_gmt, date_gmt 字段進行篩選。
透過使用此外掛,我們可以指定欄位(其中任何一個在 date、date_gmt、modified 或 modified_gmt 中),作為 date_query_column 查詢參數,以對在 before 及/或 after 查詢參數中提供的值進行查詢。

使用方法

在任何文章端點上(例如 /wp/v2/posts 或 /wp/v2/pages)結合 before 及/或 after 參數使用 date_query_column 參數。

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

原文外掛簡介

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

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP REST API – Filter posts date wise using given column」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.1 |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon