plugin-icon

Custom Taxonomy Templates

Define custom templates for taxonomy archive views.
评级
5
最后更新
November 21, 2016
版本
0.2.1
活跃安装
100

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
免费使用Creator套餐
活跃安装
100
目前已测试版本
4.6.29
此插件可供下载,可用于您的 WordPress 自托管安装。