Title: Post Taxonomy Column
Author: Marcus Downing
Published: <strong>2011 年 10 月 17 日</strong>
Last modified: 2011 年 10 月 26 日

---

搜尋外掛

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

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

# Post Taxonomy Column

 由 [Marcus Downing](https://profiles.wordpress.org/marcusdowning/) 開發

[下載](https://downloads.wordpress.org/plugin/post-taxonomy-column.zip)

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

 [技術支援](https://wordpress.org/support/plugin/post-taxonomy-column/)

## 外掛說明

This plugin improves the All Posts or All Pages view in the admin section by adding
columns for
 any taxonomy you wish. There are two ways to use it:

 1. Use the setting page to select the taxonomies.
 2. Write code to add a column in exactly the right place.

## 螢幕擷圖

[⌊A Keywords column added to the All Pages listing.⌉⌊A Keywords column added to 
the All Pages listing.⌉[

A _Keywords_ column added to the All Pages listing.

[⌊The settings page.⌉⌊The settings page.⌉[

The settings page.

## 安裝方式

Install the plugin the normal way:

 1. Upload the `post-taxonomy-column` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Visit the settings page to switch columns on and off.

Alternatively, you can use the `manage_edit-post_type_columns` filter to adjust 
the columns more precisely.

Suppose you have a custom post type called _Movies_, and a custom taxonomy called
_Year of Release_ with the code `year`, and you’d like to add this to the ‘All Movies’
listing in the admin.

Put the following code into `functions.php` or a plugin:

    ```
    add_filter("manage_edit-movie_columns", "add_movie_columns");
    function add_movie_columns ($columns) {
        $columns['year'] = 'Year of Release';
        return $columns;
    }
    ```

This plugin will then fill in values for the Year column.

## 常見問題集

  Where do these taxonomies come from?

You’ll need to add them, either with code in your theme’s `functions.php` or using
a plugin.
 This plugin does not register or manage taxonomies.

  Does this work with custom post types?

Yes.

  Can I use this plugin to create custom post types?

No, this plugin does not register or manage custom post types.
 You’ll need to add
them either with code in your theme’s `functions.php` or using a plugin.

  My taxonomy/post type isn’t showing up. What’s wrong?

Make sure your taxonomies and post types are public:

    ```
     register_post_type('foo', array(
       ...
       'public' => true
     ));
    ```

  What will this do if I add a column code that isn’t a taxonomy?

Nothing. You’ll get a blank cell.

  Can I have more than one taxonomy column?

Yes, as many as you like as long as the column’s ID matches up with the taxonomy
ID.

  Can I control the order of the columns? How do I add a column in the middle rather
than the end?

To fine-tune the order of the columns, you will need to control them yourself.
 
Turn off the checkboxes in the settings page, and instead use the `manage_edit-`
_xxx_`_columns` filter which lets you adjust the columns any way you wish.

For example, to add the `year` column after the `author` column:

    ```
    add_filter("manage_edit-movie_columns", "add_movie_columns");
    function add_movie_columns ($columns) {
        $out = array();
        foreach ($columns as $key => $value) {
          $out[$key] = $value;
          if ($key == "author")
            $out["year"] = "Year of Release";
        }
        return $out;
    }
    ```

Make sure your filter returns a value of some sort, or you’ll end up with no columns
at all.

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ Marcus Downing ](https://profiles.wordpress.org/marcusdowning/)

[將〈Post Taxonomy Column〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/post-taxonomy-column)

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

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

## 變更記錄

#### 1.1

Added a settings page and code to add columns for you. No more code required!

#### 1.0

The first release. Required you to add much of the code yourself.

## 中繼資料

 *  版本 **1.1**
 *  最後更新 **15 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/post-taxonomy-column/)
 * 標籤:
 * [admin](https://tw.wordpress.org/plugins/tags/admin/)[taxonomies](https://tw.wordpress.org/plugins/tags/taxonomies/)
 *  [進階檢視](https://tw.wordpress.org/plugins/post-taxonomy-column/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/post-taxonomy-column/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/post-taxonomy-column/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/post-taxonomy-column/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/post-taxonomy-column/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/post-taxonomy-column/reviews/?filter=1)

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

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

## 參與者

 *   [ Marcus Downing ](https://profiles.wordpress.org/marcusdowning/)

## 技術支援

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

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