這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Get remote posts list

外掛說明

Get remote posts list
This wordpress plugin to Get Recent Posts from Remote Wp site using Rest api
This plugin create a widget “Get Posts from Api” after installation.
You need to add widget to your sidebar where you want to display the remote sites recent posts list.
This widget accepts two parameter, Json URL and post limit(number of posts to display).
Json url should look like http://yoursite.com/wp-json/wp/v2/posts/
You can limit the number of posts you want to retrive from remote site by setting post limit.

螢幕擷圖

  • Front end display of list
  • Widget Settings

安裝方式

This section describes how to install the plugin and get it working.

e.g.

  1. Upload the plugin files to the /wp-content/plugins/get-remote-post-list directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Plugin Name screen to configure the plugin

常見問題集

How to get json api url?

If the remote site is wordpress site and having rest api enabled for it, you can obtain the json urls by using the http://xxx.com/wp-json/wp/v2/posts/
Note: replace “xxx” with site domain

使用者評論

2018 年 3 月 21 日
Hi Ganesh, Good work! Its really though easy to fetch remote content such as posts. FYI - The REST API is included in WordPress 4.7! Just install the latest version of WordPress and you're ready to go. So your plugins have zero dependancies. https://v2.wp-api.org/ Thanks, -Mohan
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Get remote posts list〉的開發相關工作。

參與者

將〈Get remote posts list〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0

  • Adding first version of my plugin