Title: JSONPress
Author: takien
Published: <strong>2013 年 8 月 27 日</strong>
Last modified: 2013 年 8 月 28 日

---

搜尋外掛

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

![](https://s.w.org/plugins/geopattern-icon/jsonpress.svg)

# JSONPress

 由 [takien](https://profiles.wordpress.org/takien/) 開發

[下載](https://downloads.wordpress.org/plugin/jsonpress.0.3.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/jsonpress/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/jsonpress/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/jsonpress/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/jsonpress/#developers)

 [技術支援](https://wordpress.org/support/plugin/jsonpress/)

## 外掛說明

JSONPress – Allows you to request WordPress site via JSON/JSONP output using standard
WordPress query.

#### Features

 * Access JSON via sub domain, ex. `api.example.com` (sub domain must be configured
   separately)
 * Supports `JSONP` callback.
 * Easy to debug output using `JSON pretty print` or `print_r`.
 * You can `exclude columns/data` to be displayed in JSON output.
 * You can include `custom fields` too.
 * This plugin uses `standard WordPress query`, no SQL hack etc.
 * Use `standard WordPress URL`, no need to remember new annoying URL.
 * And many more features I don’t tell here.

#### Special

Not only posts/page, you can also call some functions via URL.

Examples:

 * `example.com/get/wp_list_categories` to displays list categories in JSON format
 * `example.com/get/wp_list_pages` to displays list pages
 * `example.com/get/wp_nav_menu` to displays menus

Hei, how about $args of those functions?
 * `example.com/get/wp_list_categories?
args[orderby]=ID&args[exclude]=1,3,4&args[child_of]=2` etc. cool, right? * Use subdomain
API is recommended to ensure all links/permalinks are rewritten to API URL.

## 螢幕擷圖

[⌊Default⌉⌊Default⌉[

Default

[⌊Add debug=1 query to display JSON in pretty format⌉⌊Add debug=1 query to display
JSON in pretty format⌉[

Add debug=1 query to display JSON in pretty format

[⌊You can also use print_r=1 for debugging purpose⌉⌊You can also use print_r=1 for
debugging purpose⌉[

You can also use print_r=1 for debugging purpose

[⌊Use callback for JSONP access⌉⌊Use callback for JSONP access⌉[

Use callback for JSONP access

[⌊Settings page⌉⌊Settings page⌉[

Settings page

## 安裝方式

There are many ways to install this plugin, e.g:

 1. Upload compressed (zip) plugin using WordPress plugin uploader.
 2. Install using plugin installer in WordPress dashboard.
 3. Upload manually uncompressed plugin file using FTP.

## 常見問題集

none

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

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

參與者

 *   [ takien ](https://profiles.wordpress.org/takien/)

[將〈JSONPress〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/jsonpress)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/jsonpress/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/jsonpress/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/jsonpress/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/jsonpress/)。

## 變更記錄

#### 0.3

 * /json endpoints now works accross site, (previously only on page or post)

#### 0.2

 * exclude_query now run after result is formatted
 * function_exists check on `easy_get_image` library
 * permalink/site_url changed only if API domain is configured
 * fixed `json` endpoint, previously required to pass value json/1
 * fix notice errors
 * improved API access check
 * fix 404 result

#### 0.1

 * First release

## 中繼資料

 *  版本 **0.3**
 *  最後更新 **13 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.5.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.6.1**
 *  語言
 * [English (US)](https://wordpress.org/plugins/jsonpress/)
 * 標籤:
 * [api](https://tw.wordpress.org/plugins/tags/api/)[JSON](https://tw.wordpress.org/plugins/tags/json/)
   [jsonp](https://tw.wordpress.org/plugins/tags/jsonp/)[rest](https://tw.wordpress.org/plugins/tags/rest/)
   [RESTful](https://tw.wordpress.org/plugins/tags/restful/)
 *  [進階檢視](https://tw.wordpress.org/plugins/jsonpress/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/jsonpress/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/jsonpress/reviews/)

## 參與者

 *   [ takien ](https://profiles.wordpress.org/takien/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/jsonpress/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://takien.com/donate)