Title: Maga Category Images
Author: maga56
Published: <strong>March 24, 2012</strong>
Last modified: January 12, 2013

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/maga-category-images.svg)

# Maga Category Images

 By [maga56](https://profiles.wordpress.org/maga56/)

[Download](https://downloads.wordpress.org/plugin/maga-category-images.zip)

 * [Details](https://wordpress.org/plugins/maga-category-images/#description)
 * [Reviews](https://wordpress.org/plugins/maga-category-images/#reviews)
 *  [Installation](https://wordpress.org/plugins/maga-category-images/#installation)
 * [Development](https://wordpress.org/plugins/maga-category-images/#developers)

 [Support](https://wordpress.org/support/plugin/maga-category-images/)

## Description

Maga Category Images v1.2.1 By Ricardo Magallanes.

Associates an image file (jpg or png) to a given category.

### Upgrading to 1.2.1

If you are upgrading from an older version of this plugin it is very important that
you backup your img folder found on this plugin’s directory before you upgrade.

After you update the plugin overwrite the img folder with the old one, otherwise
you will lose your images.

I will provide a fix so that this is not necessary on the next update. Sorry for
the inconvenience.

### 1.2.1

I reorganized the files so that the automatic plugin installer would work properly.

### 1.2

Addressed several bugfixes regarding the wordpress prefix and some icons that weren’t
visible.

The category selection box now features a recursive function to traverse through
all the categories at all levels.

### 1.1

Added a table where you can view the images that are assigned to the category and
added a cleanup functions that will clean
 the database of all records that belong
to categories that are not in wordpress anymore.

For any bug reports, comments or feedback, please email me at ricardo.magallanes@
gmail.com

## Installation

Setup Instructions:

 1. Drag the ‘maga-category-images’ folder into your Plugins Folder.
 2. Find the plugin in the WordPress Admin and Activate it.
 3. After Activation you will find the ‘Category Images’ section under Settings.
 4. Fill out the form, choosing the images you want and the category you wish to associate
    them with.
 5. In your wordpress theme.. you can use two functions that are called invoking the
    $maga object.
 6. $maga->getSpecficImage($id) : Returns the url of the image corresponding to that
    category. This method can be used anywhere as long as you can fetch the ID you 
    want.
 7. $maga->getImageInCategory : Returns the url of the image corresponding to the category
    you are currently browsing. This method is better suited for its use in your category.
    php files.

Example Usage:

    ```
    <?php if($maga) : ?>
            <img src = "<?php echo $maga->getImageInCategory(); ?>"/>       
    <?php endif; ?> 

    <?php if($maga) : ?>
            <img src = "<?php echo $maga->getSpecificImage(3); ?>"/>        
    <?php endif; ?>
    ```

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Maga Category Images” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ maga56 ](https://profiles.wordpress.org/maga56/)

[Translate “Maga Category Images” into your language.](https://translate.wordpress.org/projects/wp-plugins/maga-category-images)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/maga-category-images/),
check out the [SVN repository](https://plugins.svn.wordpress.org/maga-category-images/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/maga-category-images/)
by [RSS](https://plugins.trac.wordpress.org/log/maga-category-images/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.2.1**
 *  Last updated **14 years ago**
 *  Active installations **10+**
 *  WordPress version ** 3.3.1 or higher **
 *  Tested up to **3.5.2**
 * Tags
 * [category](https://wordpress.org/plugins/tags/category/)[images](https://wordpress.org/plugins/tags/images/)
 *  [Advanced View](https://wordpress.org/plugins/maga-category-images/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/maga-category-images/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/maga-category-images/reviews/)

## Contributors

 *   [ maga56 ](https://profiles.wordpress.org/maga56/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/maga-category-images/)