{"id":146814,"date":"2021-09-15T08:39:34","date_gmt":"2021-09-15T08:39:34","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/rdv-category-image\/"},"modified":"2026-06-26T15:29:34","modified_gmt":"2026-06-26T15:29:34","slug":"rdv-category-image","status":"publish","type":"plugin","link":"https:\/\/arg.wordpress.org\/plugins\/rdv-category-image\/","author":17167631,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.1","stable_tag":"1.1.1","tested":"7.0","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"RDV Category Image","header_author":"RDV InfoTech","header_description":"RDV Category Image Plugin allow you to set an image to category or taxonomy. This plugin allow you to display category image with either template tag or shortcode.","assets_banners_color":"ccced8","last_updated":"2026-06-26 15:29:34","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/rdvinfotech.com\/","rating":5,"author_block_rating":0,"active_installs":300,"downloads":5469,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"rdvinfotech","date":"2021-09-15 10:03:35"},"1.0.1":{"tag":"1.0.1","author":"rdvinfotech","date":"2021-09-15 10:03:35"},"1.0.10":{"tag":"1.0.10","author":"rdvinfotech","date":"2025-06-12 05:19:32"},"1.0.2":{"tag":"1.0.2","author":"rdvinfotech","date":"2021-09-15 10:23:17"},"1.0.3":{"tag":"1.0.3","author":"rdvinfotech","date":"2021-09-15 11:53:16"},"1.0.4":{"tag":"1.0.4","author":"rdvinfotech","date":"2022-08-11 11:03:52"},"1.0.5":{"tag":"1.0.5","author":"rdvinfotech","date":"2022-11-28 14:43:30"},"1.0.6":{"tag":"1.0.6","author":"rdvinfotech","date":"2022-11-29 17:49:24"},"1.0.7":{"tag":"1.0.7","author":"rdvinfotech","date":"2023-06-22 05:55:56"},"1.0.8":{"tag":"1.0.8","author":"rdvinfotech","date":"2023-12-12 12:36:44"},"1.0.9":{"tag":"1.0.9","author":"rdvinfotech","date":"2024-12-12 11:25:56"},"1.1.0":{"tag":"1.1.0","author":"rdvinfotech","date":"2025-12-12 17:55:26"},"1.1.1":{"tag":"1.1.1","author":"rdvinfotech","date":"2026-06-26 15:29:34"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":2},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2599260,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2599260,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":2599260,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","1.0.10","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3587381,"resolution":"1","location":"assets","locale":"","width":1280,"height":1000},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3587381,"resolution":"2","location":"assets","locale":"","width":1280,"height":1000},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3587381,"resolution":"3","location":"assets","locale":"","width":1280,"height":1000}},"screenshots":{"1":"Settings page.","2":"Categories list and Add New Category page.","3":"Edit Category page - setting image, selecting size, and copying shortcode."}},"plugin_section":[],"plugin_tags":[13359,269026,37727,16333,13350],"plugin_category":[],"plugin_contributors":[227040],"plugin_business_model":[],"class_list":["post-146814","plugin","type-plugin","status-publish","hentry","plugin_tags-category-image","plugin_tags-product-category-image","plugin_tags-tag-image","plugin_tags-taxonomy-image","plugin_tags-woocommerce-category","plugin_contributors-rdvinfotech","plugin_committers-rdvinfotech","plugin_committers-rdvplugins"],"banners":{"banner":"https:\/\/ps.w.org\/rdv-category-image\/assets\/banner-772x250.png?rev=2599260","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/rdv-category-image\/assets\/icon-128x128.png?rev=2599260","icon_2x":"https:\/\/ps.w.org\/rdv-category-image\/assets\/icon-256x256.png?rev=2599260","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/rdv-category-image\/assets\/screenshot-1.png?rev=3587381","caption":"Settings page."},{"src":"https:\/\/ps.w.org\/rdv-category-image\/assets\/screenshot-2.png?rev=3587381","caption":"Categories list and Add New Category page."},{"src":"https:\/\/ps.w.org\/rdv-category-image\/assets\/screenshot-3.png?rev=3587381","caption":"Edit Category page - setting image, selecting size, and copying shortcode."}],"raw_content":"<!--section=description-->\n<p>The RDV Category Image plugin allows adding an image to a category, tag, or custom taxonomy. Please review the code snippets below to display a category image on a category page template, page, or post.<\/p>\n\n<ul>\n<li><p>Use the template tag <code>rdv_category_image_url();<\/code> with the PHP <code>echo<\/code> function to retrieve the category image URL, and then use it in an image tag.<\/p>\n\n<pre><code>&lt;?php if(function_exists('rdv_category_image_url')){ echo rdv_category_image_url(); } ?&gt;\n<\/code><\/pre><\/li>\n<li><p>Use the template tag <code>rdv_category_image();<\/code> in the category template file to display the category image directly.<\/p>\n\n<pre><code>&lt;?php if(function_exists('rdv_category_image')){ rdv_category_image(); } ?&gt;\n<\/code><\/pre><\/li>\n<li><p>Use the shortcode in a page, post, or page builder template to display a category image. The basic shortcode without attributes <code>[rdv_category_image]<\/code> displays the image on a category archive page. Use the shortcode attributes <code>term_id<\/code> and <code>size<\/code> to display a specific category image and size on any page or post.<\/p>\n\n<pre><code>    [rdv_category_image]\n    [rdv_category_image term_id=\"10\"]\n    [rdv_category_image size=\"thumbnail\"]\n    [rdv_category_image term_id=\"10\" size=\"thumbnail\"]\n<\/code><\/pre><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Go to the WordPress admin area and select Plugins &gt; Add New from the menu.<\/li>\n<li>Search for \"RDV Category Image\".<\/li>\n<li>Click install.<\/li>\n<li>Click activate.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"where%20can%20i%20find%20the%20shortcode%20for%20my%20category%3F\"><h3>Where can I find the shortcode for my category?<\/h3><\/dt>\n<dd><p>When you edit a category that has an image, a shortcode automatically appears on the edit page like this: <code>[rdv_category_image term_id=\"10\"]<\/code><\/p>\n\n<p>Simply click the shortcode to copy it to your clipboard, then paste it anywhere on your site (posts, pages, widgets).<\/p><\/dd>\n<dt id=\"the%20image%20isn%27t%20showing%20on%20my%20site.%20what%20should%20i%20check%3F\"><h3>The image isn't showing on my site. What should I check?<\/h3><\/dt>\n<dd><p>Please check these three items:\n1. Go to <strong>RDV Category Image<\/strong> settings and verify that the taxonomy (Categories, Tags, etc.) is checked and saved.\n2. Confirm you've uploaded an image for that specific category.\n3. Clear your site cache and refresh the page.<\/p><\/dd>\n<dt id=\"does%20this%20work%20with%20woocommerce%20product%20categories%3F\"><h3>Does this work with WooCommerce product categories?<\/h3><\/dt>\n<dd><p>Yes! WooCommerce product categories are fully supported:<\/p>\n\n<ol>\n<li>Go to <strong>RDV Category Image<\/strong> settings.<\/li>\n<li>Check <strong>\"Product categories (product_cat)\"<\/strong>.<\/li>\n<li>Click <strong>Save Changes<\/strong>.<\/li>\n<li>Edit any product category and upload an image.<\/li>\n<\/ol>\n\n<p>Use the shortcode displayed on the edit page to show the image anywhere in your store.<\/p><\/dd>\n<dt id=\"will%20this%20plugin%20slow%20down%20my%20website%3F\"><h3>Will this plugin slow down my website?<\/h3><\/dt>\n<dd><p>No, the plugin is lightweight and will not affect your site's performance. It only loads administrative scripts on relevant category edit screens.<\/p><\/dd>\n<dt id=\"do%20i%20need%20to%20edit%20my%20theme%20files%20to%20use%20this%20plugin%3F\"><h3>Do I need to edit my theme files to use this plugin?<\/h3><\/dt>\n<dd><p>No! Editing files is not required for most users. Simply use the shortcode that appears when editing a category and paste it into:\n- Pages or posts (using the shortcode with the <code>term_id<\/code> attribute).\n- Page builder modules (such as Elementor, Divi, or Beaver Builder).\n- Page builder category archive templates.<\/p>\n\n<p>Advanced users who want more control can optionally add template tags to child theme files - see the template tag examples in the Description section above.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Compatibility: Tested up to WordPress 7.0<\/li>\n<li>Security: Replaced direct-access guards with the <code>return;<\/code> pattern.<\/li>\n<li>Security: Removed the redundant manual nonce field on the settings page, as the WordPress Settings API handles this automatically.<\/li>\n<li>Security: Hardened term image save\/update sanitization using <code>absint( wp_unslash(...) )<\/code>.<\/li>\n<li>Security: Updated admin page capability checks and requirements to <code>manage_options<\/code> for consistency with settings access.<\/li>\n<li>Security: Added defensive checks in frontend helpers to prevent edge-case PHP notices.<\/li>\n<li>Fix: Defined helper functions in <code>function_exists<\/code> checks to prevent conflicts.<\/li>\n<li>Fix: Maintained taxonomy image column output after Quick Edit and Add Term AJAX refreshes.<\/li>\n<li>Fix: Updated category list thumbnail column output to return HTML.<\/li>\n<li>Enhancement: Limited admin and media asset loading to the plugin settings and taxonomy edit screens for improved performance.<\/li>\n<li>Enhancement: Added a scoped success notice (<code>Settings saved successfully.<\/code>) on the plugin settings page.<\/li>\n<li>Enhancement: Improved the category image edit screen with dynamic <code>Add Image<\/code> and <code>Change Image<\/code> button labels.<\/li>\n<li>Enhancement: Updated the category image size dropdown to display dimensions and disable unavailable sizes.<\/li>\n<li>Enhancement: Optimized column filter registration to only run on active taxonomy list pages.<\/li>\n<li>Enhancement: Updated settings page instructions to support translation.<\/li>\n<li>Enhancement: Added keyboard support (Enter\/Space) to the click-to-copy shortcode.<\/li>\n<li>Tweak: Localized the media frame handling in the admin JavaScript to prevent global variable conflicts.<\/li>\n<li>Tweak: Improved media frame image URL fallback logic when certain attachment sizes are unavailable.<\/li>\n<li>Tweak: Removed unnecessary output buffering in the shortcode flow.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Compatibility: Tested up to WordPress 6.9<\/li>\n<li>New: Added shortcode preview on category edit page with click-to-copy functionality.<\/li>\n<li>Security: Added nonces and capability checks for term image add\/edit.<\/li>\n<li>Security: Sanitized inputs (use <code>intval()<\/code> for image IDs) and improved attribute\/URL escaping.<\/li>\n<li>Security: Added a sanitize callback for plugin options.<\/li>\n<li>Fix: Handled missing\/invalid attachments to avoid PHP notices.<\/li>\n<li>Enhancement: Refactored JavaScript to eliminate global variables and use targeted event handlers for improved reliability.<\/li>\n<li>Enhancement: Initialize plugin on <code>plugins_loaded<\/code> hook for proper WordPress integration.<\/li>\n<li>Tweak: Preselect the existing image in the media modal when editing a category image.<\/li>\n<li>Docs: Added FAQ section to readme.txt.<\/li>\n<\/ul>\n\n<h4>1.0.10<\/h4>\n\n<ul>\n<li>Compatibility: Tested up to WordPress 6.8.1<\/li>\n<li>Tweak: Minor adjustments to code.<\/li>\n<\/ul>\n\n<h4>1.0.9<\/h4>\n\n<ul>\n<li>Compatibility: Tested up to WordPress 6.5.2<\/li>\n<li>Tweak: Minor adjustments to CSS and code.<\/li>\n<\/ul>\n\n<h4>1.0.8<\/h4>\n\n<ul>\n<li>Compatibility: Tested up to WordPress 6.4.2<\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<ul>\n<li>Compatibility: Tested up to WordPress 6.2.2<\/li>\n<li>Tweak: Added notice - Settings saved.<\/li>\n<li>Tweak: Added categories\/taxonomies labels.<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Compatibility: Tested up to WordPress 6.1.1<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Compatibility: Tested up to WordPress 6.1<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Compatibility: Tested up to WordPress 6.0.1<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Documentation Update<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Documentation Update<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Updated documentation<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>The First Release<\/li>\n<\/ul>","raw_excerpt":"Add an image to a category or taxonomy. Display a category image using either a template tag or a shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/146814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=146814"}],"author":[{"embeddable":true,"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rdvinfotech"}],"wp:attachment":[{"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=146814"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=146814"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=146814"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=146814"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=146814"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/arg.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=146814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}