Linux 软件免费装
Banner图

TaxoSelect - Taxonomy Template Selector

开发者 runthingsdev
更新时间 2026年1月14日 22:13
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

template taxonomy category archive custom template

下载

1.3.3

详情介绍:

Assign custom archive templates to categories, tags and other taxonomy terms, similar to how WordPress page templates work. Template selection is automatically enabled for all public taxonomies. Edit any term to choose a custom archive template. Features: Links:

安装:

  1. Upload the plugin to your /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Create template files in your theme with the header comment Taxonomy Template: Your Template Name
  4. Edit a category/term and select your template from the dropdown

升级注意事项:

1.3.3 Revert readme.md exclusion - it was a false positive / bug in plugin check plugin. 1.3.2 Exclude readme.md from plugin distribution zip file. 1.3.1 Renamed display name to 'TaxoSelect - Taxonomy Template Selector' for WP.org submission compliance

常见问题:

How do I create a custom template?

Add a PHP file to your theme directory with this header comment: `<?php /**

  • Taxonomy Template: My Custom Template */`

Which taxonomies are supported?

All public taxonomies including categories, tags, custom taxonomies from plugins like WooCommerce product categories, and any custom post type taxonomies.

I'm using "Category Template:" in my theme files. Do I need to change it?

No. The plugin supports both Taxonomy Template: (recommended) and Category Template: (legacy) headers for backwards compatibility. Your existing templates will continue to work.

Can I prevent data deletion when uninstalling?

Yes. Add this to your wp-config.php before uninstalling: define( 'RUNTHINGS_TAXONOMY_TEMPLATE_SELECTOR_KEEP_DATA', true );

Why don't I see the template dropdown?

Make sure your theme has at least one PHP file with either a Taxonomy Template: or Category Template: header comment. The dropdown only appears if templates are available to select.

Can I add custom directories for template scanning?

Yes. Use the runthings_taxonomy_template_selector_dirs filter to add additional directories. Note that subdirectories are not scanned automatically - you must add each folder path explicitly. add_filter( 'runthings_taxonomy_template_selector_dirs', function( $dirs ) { $dirs[] = get_stylesheet_directory() . '/taxonomy-templates'; return $dirs; } );

Can I add or remove templates without modifying theme files?

Yes. Use the runthings_taxonomy_template_selector_list filter to modify the available templates. The filename is a path relative to your theme root - if using a child theme, it checks the child theme first, then falls back to the parent theme. add_filter( 'runthings_taxonomy_template_selector_list', function( $templates ) { // Add a template from theme root $templates['My Custom Archive'] = 'custom-archive.php'; // Add a template from a subdirectory $templates['Product Archive'] = 'template-parts/archive-product.php'; // Remove one you don't want unset( $templates['Unwanted Template'] ); return $templates; } );

How do I upgrade from Advanced Category Template?

This plugin is a fork of the original "Advanced Category Template" plugin by Praveen Goswami. It was adopted because the original plugin was removed from the WordPress.org plugin directory due to security issues. Your existing template mappings will be migrated automatically when you activate this plugin. You can safely deactivate and delete the old plugin in any order.

更新日志:

1.3.3 - 14th January 2026 1.3.2 - 14th January 2026 1.3.1 - 14th January 2026 1.3.0 - 3rd January 2026 1.2.0 - 3rd January 2026 1.1.0 - 2nd January 2026 1.0.0 - 16th December 2025