{"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":"2025-12-12T17:55:26","modified_gmt":"2025-12-12T17:55:26","slug":"rdv-category-image","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/rdv-category-image\/","author":17167631,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.0","stable_tag":"1.1.0","tested":"6.9.4","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":"2025-12-12 17:55:26","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":5160,"num_ratings":2,"support_threads":1,"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"}},"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":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2599260,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":2599260,"resolution":"772x250","location":"assets","locale":""}},"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"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3076219,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3127238,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3076219,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3418464,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"Settings page.","2":"Add New Category page.","3":"Edit Category page - add image.","4":"Edit Category page - shortcode preview."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[16332,13359,5060,16333,16334],"plugin_category":[],"plugin_contributors":[227040],"plugin_business_model":[],"class_list":["post-146814","plugin","type-plugin","status-publish","hentry","plugin_tags-categories-images","plugin_tags-category-image","plugin_tags-category-images","plugin_tags-taxonomy-image","plugin_tags-taxonomy-images","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=3076219","caption":"Settings page."},{"src":"https:\/\/ps.w.org\/rdv-category-image\/assets\/screenshot-2.png?rev=3127238","caption":"Add New Category page."},{"src":"https:\/\/ps.w.org\/rdv-category-image\/assets\/screenshot-3.png?rev=3076219","caption":"Edit Category page - add image."},{"src":"https:\/\/ps.w.org\/rdv-category-image\/assets\/screenshot-4.png?rev=3418464","caption":"Edit Category page - shortcode preview."}],"raw_content":"<!--section=description-->\n<p>RDV Category Image plugin allows you to add an image to a category, tag, or any custom taxonomies. Please review the code snippets below to display a category image on the category page template or any page or post.<\/p>\n\n<ul>\n<li><p>Use template tag rdv_category_image_url(); with php echo function to get 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 this template tag rdv_category_image(); 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 page or post or a page builder template to display a category image. The basic shortcode without attributes [rdv_category_image] will only work on the category template page to display a specific category image. Use shortcode attributes term_id and size to display a specific category image and size.<\/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 your admin area and select Plugins and 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>Make sure of these three things:\n1. Go to <strong>RDV Category Image<\/strong> settings and verify 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 work automatically:<\/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 won't affect your site's performance. It only loads in the admin area when you're editing categories.<\/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! For most users, you don't need to edit any files. Simply use the shortcode that appears when you edit a category and paste it into:\n- Posts or pages (use the full shortcode with term_id)\n- Page builder modules (Elementor, Divi, Beaver Builder, etc.)\n- Page builder category archive templates<\/p>\n\n<p>Advanced users who want more control can optionally add template tags to their 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.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:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/146814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=146814"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rdvinfotech"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=146814"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=146814"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=146814"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=146814"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=146814"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=146814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}