Linux 软件免费装
Banner图

Codemetric Taxonomy Icons

开发者 codemetric
更新时间 2026年11月23日 01:15
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

elementor blocks category icons taxonomy icons term icons

下载

1.0.0

详情介绍:

Taxonomy Icons adds an icon picker to the term edit screen of categories and of any other public taxonomy. The icons come from the WordPress Icons registry, the same source as the core Icon block. You can also turn on extra icon sets. Show the icons with the two included blocks, with the matching Elementor widgets, or with template functions in your theme. The plugin is compatible with Elementor. Features Template functions codemcti_get_category_icon( $term = null, $args = array() ) Returns the SVG markup of the icon assigned to a term, or an empty string. $term is a term object or ID and defaults to the queried term. $args accepts size (pixels, default 24), class and label (an empty label marks the icon as decorative). codemcti_the_category_icon( $term = null, $args = array() ) Prints the icon. Takes the same arguments. codemcti_get_category_icon_name( $term = null ) Returns the registered icon name, for example core/star-filled. Filters

安装:

  1. Upload the codemetric-taxonomy-icons folder to /wp-content/plugins/, or install the plugin from the Plugins screen.
  2. Activate the plugin from the Plugins screen.
  3. Go to Settings > Taxonomy Icons to choose the taxonomies that support icons and turn on any extra icon sets.
  4. Edit a term (for example under Posts > Categories) and choose its icon.
  5. Add the Categories with icons or Categories list with icons block to a post, page or template.

屏幕截图:

  • Settings page.

升级注意事项:

1.0.0 Initial release.

常见问题:

Which taxonomies are supported?

By default only Categories. You can turn on any other public taxonomy, including custom ones, on the settings page.

Can I use it with custom post types?

Yes. In the Categories with icons block, choose the taxonomy to show in the block settings panel. The list contains only the taxonomies registered for the current post type.

Is the plugin compatible with Elementor?

Yes. When Elementor is active, the Categories with icons and Categories list with icons widgets appear in the General category of the Elementor panel. They also work inside Elementor loop items.

Why does the block show nothing?

The block shows nothing when the post has no terms in the chosen taxonomy, or when the chosen taxonomy is not registered for the post type.

Why does the plugin require WordPress 7.1?

It relies on the WordPress Icons registry to store and render icons.

更新日志:

1.0.0