Skip to content

This plugin allows you to add and manage images for categories and tags in WordPress, enhancing your website's taxonomy presentation.

License

Notifications You must be signed in to change notification settings

giovannimanetti11/perseo-catandtags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perseo - Category and Tags Images

The Perseo - Category and Tags Images plugin allows you to add and manage images for categories and tags in WordPress, enhancing your website's taxonomy presentation. With this plugin, you can easily upload an image for each category or tag, providing a visual representation that can be utilized throughout your site.

Features

  • Upload images for categories and tags: load an image on each taxonomy within the WordPress related page.
  • Simple interface: use the WordPress native media uploader for easy management of taxonomy images.
  • Easy displaying: retrieve and display the assigned images in your theme or through custom development.

Installation

  1. Download the plugin: download the latest version of the The Perseo - Category and Tags plugin from the GitHub repository.
  2. Upload to WordPress:
    • Navigate to the WordPress admin area.
    • Go to Plugins > Add New > Upload Plugin.
    • Choose the downloaded plugin file (perseo-catandtags.zip) and click Install Now.
  3. Activate the plugin: After installation, activate the plugin through the 'Plugins' menu in WordPress.

Usage

Uploading images

  1. Go to the Posts > Categories or Posts > Tags page in the WordPress admin area.
  2. Add a new category or tag, or edit an existing one.
  3. You'll see an option to upload an image for that specific category or tag. Use the WordPress media uploader to select or upload a new image.

Displaying images in your theme

To display the image in your theme, you can use the following PHP code snippet. This example shows how to display the image for the current category or tag on a taxonomy archive page:

$term_id = get_queried_object_id();
$image_id = get_term_meta($term_id, 'perseo-category-image-id', true);
if ( ! empty($image_id) ) {
    echo wp_get_attachment_image( $image_id, 'full' );
}

Replace 'full' with any registered image size.

Customization

Perseo - Category and Tags is designed to be simple to use but also flexible for developers. You can extend its functionality or integrate it with your theme by using WordPress hooks and the provided metadata. This flexibility allows you to customize how images are displayed or even add additional metadata to each term, enhancing your site's taxonomy.

Contributing

Contributions to the Perseo - Category and Tags Images plugin are welcome! If you have ideas for improvements, bug fixes, or new features, please feel free to submit them.

  1. Fork the repository on GitHub.
  2. Clone the project to your own machine.
  3. Commit changes to your own branch.
  4. Push your work back up to your fork.
  5. Submit a Pull request so that I can review your changes

NOTE: Be sure to merge the latest from "upstream" before making a pull request!

License

The Perseo - Category and Tags Images plugin is open-sourced software licensed under the MIT license. Feel free to fork, modify, and use it in your own projects.

About

This plugin allows you to add and manage images for categories and tags in WordPress, enhancing your website's taxonomy presentation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published