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

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://tw.wordpress.org/plugins/json-data-feed/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/json-data-feed/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/json-data-feed/#installation)
 * [開發資訊](https://tw.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 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.5.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/json-data-feed/)
 * 標籤:
 * [data feed](https://tw.wordpress.org/plugins/tags/data-feed/)[JSON](https://tw.wordpress.org/plugins/tags/json/)
 *  [進階檢視](https://tw.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/)