Home » WordPress » Display List of Category Names and Images WordPress

Display List of Category Names and Images WordPress

In this tutorial, we going to display a list of category names and images in the home/front page or anywhere in the WordPress site. By looping the primary category name and with the help of a plugin here we going to display the category names & images. Categories Images plugin allows you to add an image with category or taxonomy, it also provides the image URL and image PHP code you can use it anywhere you want.

Before using the code first, you need to install the Categories Images plugin in your WordPress site. Once you installed the plugin then add the images for all the categories which you created. See the below screenshot for your reference.

Display Category Names and Images WordPress

Once you added the images in all the categories then use the below code on your home page or anywhere you like to display the category names and images.

In the above code just we looped the parent category name and with the help of the Categories Images plugin, we added the category image URL path in the image tag.

Add the below css in your style.css file.

The final output looks like the below screenshot.

Showing category image with title wordpress

Conclusion:

I hope this tutorial will help you to display a list of category names and images on your website. If you have any doubts about this topic let me know in the comment section and if like this tutorial share it with your friends.

Was this article helpful?

Yes No
×

How can we improve it?

×

We appreciate your helpul feedback!

Your answer will be used to improve our content. The more feedback you give us, the better our pages can be.

Follow us on social media:

Facebook Pinterest

Mraj

Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top