Linux 软件免费装
Banner图

API REST Posts

开发者 fuentes7
更新时间 2026年7月1日 13:40
PHP版本: 7.0 及以上
WordPress版本: 7.0
版权: GPL v2 or later
版权网址: 版权信息

标签

posts categories rest-api excerpts latest-posts

下载

1.2

详情介绍:

API REST Posts adds two public REST API endpoints for listing recent posts: The plugin settings page lets site administrators configure the date format and the number of words returned in each excerpt. Each post response also includes category data.

安装:

  1. Upload the plugin folder to the /wp-content/plugins/ directory, or install it from the WordPress plugins screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Settings > API REST Posts to configure the date format and excerpt word limit.

常见问题:

How do I get latest posts by category?

Use this endpoint and replace 1 with the category ID and 3 with the number of posts to return: https://example.com/wp-json/last-post/v2/category/1/numberposts/3

How do I get latest posts from the whole site?

Use this endpoint and replace 3 with the number of posts to return: https://example.com/wp-json/last-post/v2/numberposts/3

Does this plugin collect personal data?

No. The plugin does not collect, store, or send personal data to third parties.

更新日志:

1.2 1.1