The Categories Images is a Wordpress plugin allow you to add image to category, tag or custom taxonomy.
Use
<?php if (function_exists('z_taxonomy_image_url')) echo z_taxonomy_image_url(); ?> to get the url and put it in any img tag.
Or simply use
<?php if (function_exists('z_taxonomy_image')) z_taxonomy_image(); ?> in (category or taxonomy) template.
REST API Support
Access term images via the WP REST API. The field
z_taxonomy_image_url is automatically added to term objects.
Enhanced Shortcodes
[z_taxonomy_image term_id="123" size="medium" link="yes"] - Display a specific term image with a link.
[z_taxonomy_list taxonomy="category" style="grid" columns="4" show_name="yes"] - Display a beautiful grid of terms with their images.
Elementor Integration
Use term images dynamically in Elementor via the native Dynamic Tags system.
Settings
Categories Images settings menu is now under Settings > Categories Images to avoid cluttering the main WordPress menu, the settings now is more organized with a dedicated documentation page that includes usage examples and shortcodes.
From the settings menu, you can exclude any taxonomies from the plugin to avoid conflicts with other plugins like WooCommerce!
You can install Categories Images directly from the WordPress admin panel:
- Visit the Plugins > Add New and search for 'Categories Images'.
- Click to install.
- Once installed, activate and it is functional.
或者
Manual Installation:
- Download the plugin, then extract it.
- Upload
categories-images extracted folder to the /wp-content/plugins/ directory
- Activate the plugin through the 'Plugins' menu in WordPress
You're done! The plugin is ready to use, for more information please check the plugin description or settings page.