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

Custom Taxonomy Creator

描述

IMPORTANT: The plugin Custom Taxonomy Creator will no longer be supported or updated.

Custom Taxonomy Creator is now part of WCK – Custom Fields and Custom Post Types Creator plugin, which is fully compatible. Download it and install it instead of the current plugin.

WCK Taxonomy Creator allows you to easily create and edit custom taxonomies for WordPress without any programming knowledge. It provides an UI for most of the arguments of register_taxonomy() function.

Features:

  • Create and edit Custom Taxonomies from the Admin UI
  • Advanced Labeling Options
  • Attach the taxonomies to built in or custom post types

螢幕截圖

  • Taxonomy Creator UI: screenshot-1.jpg
  • Taxonomy listing: screenshot-2.jpg

安裝

  1. Upload the wck-cptc folder to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Then navigate to WCK => Taxonomy Creator tab and start creating your taxonomies.

常見問題

How do I list the taxonomies in the frontend?

If you want to have a custom list in your theme, then you can pass the taxonomy name into the the_terms() function in the Loop, like so:

<?php the_terms( $post->ID, 'people', 'People: ', ', ', ' ' ); ?>

That displays the list of People attached to each post.

How do I query by taxonomy in the frontend?

Creating a taxonomy generally automatically creates a special query variable using WP_Query class, which we can use to retrieve posts based on. For example, to pull a list of posts that have Bob as a person taxomony in them, we will use:

<?php $query = new WP_Query( array( 'person' => 'bob' ) ); ?>

評價

There are no reviews for this plugin.

貢獻者及開發者

“Custom Taxonomy Creator” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Custom Taxonomy Creator 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0.2

1.0.1

  • Compatible with WordPress 3.5