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

Custom Category Templates

描述

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

<?php
/**
 * Category Template: Grid
 */
?>

and when you’re adding or editing categories, you can choose the desired template file.

This plugin is maintained solely for backward compatibility. Try the new Custom Taxonomy Templates instead, it supports all taxonomies and also uses the new term meta feature in WP 4.4.

螢幕截圖

  • Assigning custom templates to categories

安裝

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

評價

2016年9月3日
Thanks for plugin. For WPML sites there will be problem, because of WPML bug https://wpml.org/forums/topic/category-templates-issue/ We resolved it by adding 11 priority in add_filter( 'category_template', array( $this, 'category_template' ), 11 );
閱讀全部6個評價

貢獻者及開發者

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

貢獻者

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

對開發相關資訊感興趣?

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

修改日誌

0.2.1

  • Fix PHP notices
  • i18n support

0.2

  • Implementation of new WP_Theme API
  • Fixed a bug concerning body class output. Thanks @Sith Lord Goz!
  • Added delete_option method