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

Custom Taxonomy Templates

描述

Just like the way you can create custom page templates, this plugin enables you to build custom taaxonomy archive templates by adding this bit to the top of your file:

<?php
/**
 * {Taxonomy Singular Label} Template: Grid
 */
?>

where {Taxonomy Singular Label} should be replaced with the singular label registered for the taxonomy (for example “Category” or “Tag”). Now when you’re adding or editing terms in that taxonomy, you can choose the desired template file.

You can safely include this plugin in your theme and ship custom templates for taxonomy archives with the theme.

Changelogs

0.2.1

  • Allow using taxonomy slug in the template header, fix issue with templates not being found in multilingual websites. Much thanks to Mkdgs for the fix!

0.2

  • Fix fatal error when using child themes
  • added “custom_taxonomy_templates” filter for extendibility

螢幕截圖

  • Assigning custom templates to a term in custom taxonomy

安裝

  1. Upload the whole plugin directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Enjoy!

評價

閱讀全部1個評價

貢獻者及開發者

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

貢獻者

Custom Taxonomy Templates 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

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

對開發相關資訊感興趣?

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