Title: JSON Data Feed
Author: jpcordial
Published: <strong>2013 年 5 月 31 日</strong>
Last modified: 2013 年 8 月 23 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# JSON Data Feed

 作者：[jpcordial](https://profiles.wordpress.org/jpcordial/)

[下载](https://downloads.wordpress.org/plugin/json-data-feed.0.5.3.zip)

 * [详情](https://cn.wordpress.org/plugins/json-data-feed/#description)
 * [评价](https://cn.wordpress.org/plugins/json-data-feed/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/json-data-feed/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/json-data-feed/#developers)

 [支持](https://wordpress.org/support/plugin/json-data-feed/)

## 描述

JSON Data Feed can be used to supplement a WordPress blog’s normal XML feeds with
a JSON feed. Install it, activate it, and you’re done.

The JSON feed can be accessed by going to {a url on a WordPress site}/json

## 安装

 1. Unzip the plugin folder.
 2. Upload the unpacked folder to your plugins directory.
 3. Activate the plugin.
 4. Enjoy!

## 常见问题

  Can I add my own data to a post’s JSON feed?

Yes, you can!

In your theme’s _functions.php_ file, you can use a filter to add whatever data 
you need.

    ```
    add_filter("get_json_meta", "my_metadata_function");
    function my_metadata_function($metadata){
        $myData = ""; //Add your data here.
        array_push($metadata, $myData);
    }
    ```

Every post type also has it’s own meta data filter. If you need to add metadata 
only to a single post type,

    ```
    add_filter("get_json_meta_{post_type}", "my_metadata_function");
    function my_metadata_function($metadata){
        $myData = ""; //Add your data here.
        array_push($metadata, $myData);
    }
    ```

Any data you push onto the array will be available in _{post}.meta_ section of the
JSON feed.

  Can I get full category and tag objects in the feed?

Sure can! You can change that in the plug in settings.

Settings can be accessed from Settings->JSON Data Feed.

  Can I modify the blog info in the data feed?

Why yes, you can! Once again, through the magic of filters, anything is possible!

    ```
    add_filter("get_json_bloginfo", "my_bloginfo_function");
    function my_bloginfo_function($bloginfo){
        $myData = ""; //Add your data here.
        array_push($bloginfo, $myData);
    }
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

「JSON Data Feed」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「JSON Data Feed」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/json-data-feed)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/json-data-feed/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/json-data-feed/)，或通过[RSS](https://plugins.trac.wordpress.org/log/json-data-feed/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/json-data-feed/)。

## 更新日志

#### 0.1.1

Added _get\_json\_bloginfo_ filter to add or change the blog info in the data feed.

## 额外信息

 *  版本 **0.5.3**
 *  最后更新：**13 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.5 或更高版本 **
 *  已测试的最高版本为 **3.5.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/json-data-feed/)
 * 标签
 * [data feed](https://cn.wordpress.org/plugins/tags/data-feed/)[JSON](https://cn.wordpress.org/plugins/tags/json/)
 *  [高级视图](https://cn.wordpress.org/plugins/json-data-feed/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/json-data-feed/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/json-data-feed/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/json-data-feed/)