BACK TO DIRECTORY

RDV Category Image

by rdvinfotech

5.0
(2 ratings)

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.

  • Use the template tag rdv_category_image_url(); with the PHP echo function to retrieve the category image URL, and then use it in an image tag.

    <?php if(function_exists('rdv_category_image_url')){ echo rdv_category_image_url(); } ?>
    
  • Use the template tag rdv_category_image(); in the category template file to display the category image directly.

    <?php if(function_exists('rdv_category_image')){ rdv_category_image(); } ?>
    
  • Use the shortcode in a page, post, or page builder template to display a category image. The basic shortcode without attributes [rdv_category_image] displays the image on a category archive page. Use the shortcode attributes term_id and size to display a specific category image and size on any page or post.

        [rdv_category_image]
        [rdv_category_image term_id="10"]
        [rdv_category_image size="thumbnail"]
        [rdv_category_image term_id="10" size="thumbnail"]
    

Screenshots

Settings page.

Settings page.

Categories list and Add New Category page.

Categories list and Add New Category page.

Quick Edit category image directly from the taxonomy term list table.

Quick Edit category image directly from the taxonomy term list table.

Edit Category page - setting image, selecting size, and copying shortcode.

Edit Category page - setting image, selecting size, and copying shortcode.

Plugin Details

Active Installs
300
Total Downloads
6,141
Version
1.1.2
Requires WP
5.0
Requires PHP
7.4
Tested Up To
7.1
Added
2021-09-15
Last Updated
2026-09-15 8:11am GMT

Ratings

5
2
4
0
3
0
2
0
1
0