AI助手支持GPT4.0
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:
就像创建自定义页面模板的方式一样,此插件使您可以通过将以下内容添加到文件顶部来构建自定义taaxonomy存档模板: p>
<?php/** / ** * {Taxonomy Singular Label} Template: Grid * {分类法奇异标签}模板:网格 */* /?>?> code> pre>where {Taxonomy Singular Label} should be replaced with the singular label registered for the taxonomy (for example “Category” or “Tag”).其中{Taxonomy Singular Label}应替换为为分类法注册的单标签(例如“ Category”或“ Tag”)。Now when you’re adding or editing terms in that taxonomy, you can choose the desired template file.现在,当您在该分类法中添加或编辑术语时,就可以选择所需的模板文件。 p>You can safely include this plugin in your theme and ship custom templates for taxonomy archives with the theme.您可以安全地将此插件包含在主题中,并为带有主题的分类档案提供自定义模板。 p>Changelogs更改日志 h3>0.2.1 0.2.1 h4>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!非常感谢 Mkdgs ! li> ul>0.2 0.2 h4>Fix fatal error when using child themes修复使用子主题时的致命错误 li>added “custom_taxonomy_templates” filter for extendibility添加了“ custom_taxonomy_templates”过滤器以实现可扩展性 li> ul>
<?php/** / ** * {Taxonomy Singular Label} Template: Grid * {分类法奇异标签}模板:网格 */* /?>?>
/**
/ **
* {Taxonomy Singular Label} Template: Grid
* {分类法奇异标签}模板:网格
*/
* /
?>
?>
code> pre>
where {Taxonomy Singular Label} should be replaced with the singular label registered for the taxonomy (for example “Category” or “Tag”).
其中{Taxonomy Singular Label}应替换为为分类法注册的单标签(例如“ Category”或“ Tag”)。
Now when you’re adding or editing terms in that taxonomy, you can choose the desired template file.
现在,当您在该分类法中添加或编辑术语时,就可以选择所需的模板文件。 p>
You can safely include this plugin in your theme and ship custom templates for taxonomy archives with the theme.
您可以安全地将此插件包含在主题中,并为带有主题的分类档案提供自定义模板。 p>
Much thanks to Mkdgs for the fix!
非常感谢 Mkdgs ! li>
ul>
/wp-content/plugins/
/ wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>Enjoy!享受! li>
ol>
原文出处:http://www.sanshu.cn/a/9809.html
群主管理都是支付大佬