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

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的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://cn.wordpress.org/plugins/jsonpress/#description)
 * [评价](https://cn.wordpress.org/plugins/jsonpress/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/jsonpress/#installation)
 * [开发进展](https://cn.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
 * [[
 * Add debug=1 query to display JSON in pretty format
 * [[
 * You can also use print_r=1 for debugging purpose
 * [[
 * Use callback for JSONP access
 * [[
 * 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 或更高版本 **
 *  已测试的最高版本为 **3.6.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/jsonpress/)
 * 标签
 * [api](https://cn.wordpress.org/plugins/tags/api/)[JSON](https://cn.wordpress.org/plugins/tags/json/)
   [jsonp](https://cn.wordpress.org/plugins/tags/jsonp/)[rest](https://cn.wordpress.org/plugins/tags/rest/)
   [RESTful](https://cn.wordpress.org/plugins/tags/restful/)
 *  [高级视图](https://cn.wordpress.org/plugins/jsonpress/advanced/)

## 评级

尚未提交反馈。

[Your review](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)