Obrazki kategorii

Opis

The Categories Images is a WordPress plugin allow you to add image to category, tag or custom taxonomy.

Use <?php if (function_exists('z_taxonomy_image_url')) echo z_taxonomy_image_url(); ?> to get the url and put it in any img tag.
Or simply use <?php if (function_exists('z_taxonomy_image')) z_taxonomy_image(); ?> in (category or taxonomy) template.

REST API Support

Access term images via the WP REST API. The field z_taxonomy_image_url is automatically added to term objects.

Enhanced Shortcodes

  • [z_taxonomy_image term_id="123" size="medium" link="yes"] – Display a specific term image with a link.
  • [z_taxonomy_list taxonomy="category" style="grid" columns="4" show_name="yes"] – Display a beautiful grid of terms with their images.

Elementor Integration

Use term images dynamically in Elementor via the native Dynamic Tags system.

Settings

Categories Images settings menu is now under Settings > Categories Images to avoid cluttering the main WordPress menu, the settings now is more organized with a dedicated documentation page that includes usage examples and shortcodes.

From the settings menu, you can exclude any taxonomies from the plugin to avoid conflicts with other plugins like WooCommerce!

Documentation

Documentation is now available inside the plugin settings menu. for more information please visit the Obrazki kategorii.

Zrzuty ekranu

Instalacja

Możesz zainstalować obrazki kategorii bezpośrednio z panelu administracyjnego WordPressa:

  1. Visit the Plugins > Add New and search for 'Categories Images’.
  2. Click to install.
  3. Once installed, activate and it is functional.

LUB

Instalacja ręczna:

  1. Download the plugin, then extract it.
  2. Upload categories-images extracted folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins’ menu in WordPress

You’re done! The plugin is ready to use, for more information please check the plugin description or settings page.

Najczęściej zadawane pytania

Please check the documentation page:
https://zahlan.net/blog/2012/06/categories-images/

Recenzje

2025-12-21
I have been using this plugin for a couple years and it is a significant part of making categories work like, well, categories, and making my website look more graphical and appealing. The one time there was an issue, the plugin author fixed it very quickly. Really grateful for this plugin. Thank you!
2025-03-16
I give 2 stars because this plugin seems to do what it claims, that is, assign an image to each category and tag taxonomy (which is exactly what I want and something the core WordPress should already have!) However, there’s no Block added for easily using the new feature in templates. You have to edit PHP code. I also caution everyone to review the old complaints about how it records the images in the database and you should thoroughly test on a staging site first if the old complaints are still valid (slowing down large sites, not cleaning up the DB, etc)
2023-10-05
I installed it, and then realised that my SEO plugin allows OG images. I deactivated and deleted it. Now none of my categories work. I reset the permalinks, nothing. The categories show there are items, but the posts show no categories or tags attached to the post, and none can be added. I don’t know WHAT it did!
2023-07-28
I had tested them all, and I can confirm that this plugin is the best in its category. I use it throughout my project, the z_taxonomy() function has become my favorite 😉 Thank you, Muhammad, for continuing to maintain it 🙏.
2021-11-30
The plugin saves image link into the Options table. Every saved term will add a row to the site’s Options table, which may slow down the site if there are many term images. Also, the option does not get deleted after you remove a term image, it is the option’s value that gets cleared out. The option only gets deleted if you delete the term. To me, this looks unprofessional.
Przeczytaj 85 recenzji

Kontrybutorzy i deweloperzy

„Obrazki kategorii” jest oprogramowaniem open source. Poniższe osoby miały wkład w rozwój wtyczki.

Zaangażowani

Wtyczka „Obrazki kategorii” została przetłumaczona na 18 języków. Podziękuj tłumaczom za ich wkład.

Przetłumacz wtyczkę “Obrazki kategorii” na swój język.

Interesuje cię rozwój wtyczki?

Przeglądaj kod, sprawdź repozytorium SVN lub czytaj dziennik rozwoju przez RSS.

Rejestr zmian

3.3.1

  • Fixed a potential fatal error during REST API initialization.

3.3.0

  • Added native Elementor Dynamic Tag support for taxonomy images.
  • Integrated with WordPress REST API (adds z_taxonomy_image_url to term responses).
  • Major shortcode overhaul:
    • Enhanced [z_taxonomy_image] with custom links, placeholders, and size support.
    • Enhanced [z_taxonomy_list] with grid/list layouts, column control, and conditional name/count display.
  • Performance: Modern PHP array syntax refactor and optimized asset versioning.
  • Fixed frontend CSS loading for shortcode grids.
  • Categories Images settings menu is now under Settings > Categories Images to avoid cluttering the main WordPress menu, the settings now is more organized with a dedicated documentation page that includes usage examples and shortcodes.

3.2.0

  • Fix wp_options bloat issues by migrating to Term Meta API (wp_termmeta) for WP 4.4+.
  • Backward compatibility for WP < 4.4 maintained via wp_options fallback.
  • Improved performance by implementing Singleton pattern to reduce class instantiation overhead.
  • Security enhancements (nonce verification, input sanitization).

3.1.0

  • Added DE translation, thanks to denarie.
  • Start using imageId instead of imageUrl to solve any the CDN issues, thanks so alessandrocarrera.
  • Tested with the latest version of wordpress

3.0.1

  • Wyłącz automatyczne ładowanie opcji, aby zwiększyć wydajność zapytań WordPressa

3.0.0

  • Poprawiono problemy ze stroną ustawień
  • Poprawiono zgodność z najnowszą wersją WordPressa
  • Całą wtyczkę przepisaliśmy od nowa, teraz jej kod jest wydajniejszy, czytelny i czystszy

2.5.4

  • Poprawiono zgodność z najnowszą wersją WordPressa

2.5.3

  • Naprawiono błąd wyświetlania obrazka w pojedynczym tagu w szablonie tag.php
  • Dodano szwedzkie tłumaczenie. Podziękowanie dla Simon Sandgren

2.5.2

  • Naprawiono błąd wyświetlania obrazu w pełnym rozmiarze w adminie.
  • Poprawiono błąd edycji.
  • Ulepszenia w kodzie.

2.5.1

  • Dodano rosyjskie tłumaczenie.
  • Adding language support for Serbian. Thanks to Andrijana Nikolic.
  • Adding language support for Catalan. Thanks to Marc Queralt.
  • Zmieniono domenę tekstową wtyczki z zci na categories-images, aby odpowiadała uproszczonej nazwie wtyczki zgodnie z wymaganiami WordPressa.

2.5

  • Adding language support for Ukrainian. Thanks to Michael Yunat.
  • Dodano nową funkcję z_taxonomy_image() do bezpośredniego wyświetlania obrazka kategorii lub taksonomii z obsługą rozmiaru, alt i innych atrybutów. Sprawdź w dokumentacji, jak z niej korzystać.
  • Ulepszenia w kodzie.

2.4.2

  • Update code to reduce db queries. Thanks to fburatti.

2.4.1

  • Poprawiono wyświetlanie obrazka zastępczego w adminie.

2.4

  • Adding language support for Spanish (Thansk so much to Maria Ramos).
  • Dodano obsługę zmiany rozmiaru obrazków kategorii (podziękowanie dla Rahilowi Wazirowi).
  • Ulepszenia w kodzie.

2.3.2

  • Dodano francuskie tłumaczenie.

2.3.1

  • Poprawiono błędu JavaScriptu w przesyłania mediów WordPressa.

2.3

  • Dodano zrzuty ekranu.
  • Zaktualizowano pliki jezykowe.
  • Dodano obsługę zarówno starego, jak i nowego sposobu do przesyłania multimediów WordPress.
  • Dodano nowe podmenu (Obrazki kategorii) w menu Ustawienia.
  • Dodano ustawienia do wykluczania wszelkich taksonomii z wtyczki.
  • Dodano nowy obrazek zastępczy.

Thanks to Patrick and Hassan for the new ideas.

2.2.4

  • Naprawiono błąd JavaScriptu, zgłoszony konflikt z wtyczką WooCommerce. Dzięki Marty’emu McGee.

2.2.3

  • Naprawiono błąd w wyświetlaniu obrazka kategorii lub taksonomii w interfejsie użytkownika.

2.2.2

  • Naprawiono błąd w wyświetlaniu obrazu zastępczego w wp-admin.

2.2.1

  • Zmiana w funkcji z_taxonomy_image_url(), aby zwracać dane tylko w przypadku, gdy użytkownik wstawił obrazek dla wybranej kategorii lub taksonomii.

2.2

  • Poprawiono błąd działanie funkcji w zajawce w edycji kategorii taksonomii, aby uniknąć wpływania na inne strony edycji WordPressa w wp-admin.

2.1

  • Poprawiono błąd w tłumaczeniach.
  • Poprawiono błąd w kategorii szybkiej edycji lub taksonomii.

2.0

  • Dodano zrzuty ekranu.
  • Dodano wsparcie tłumaczenia.
  • Dodano języki arabski i chiński.
  • Dodano nowy przycisk do przesłania lub wyboru obrazka za pomocą narzędzia do przesyłania multimediów WordPressa.
  • Dodano domyślny obrazek zastępczy.
  • Dodano miniaturę na liście kategorii lub taksonomii.
  • Added image thumbnail, image text box, upload button and remove button in quick edit.

Thank so much to Joe Tse

1.2

  • Dodano zrzuty ekranu

1.1

  • Poprawiono błąd JavaScriptu w WordPressie 3.4

1.0

  • Pierwsze wydanie