---
title: "How to Create WordPress Image Gallery with Category Filter?"
url: https://nexterwp.com/docs/create-wordpress-image-gallery-with-category-filter/
date: 2023-06-17
modified: 2026-04-14
author: "Aditya Sharma"
description: "Make your WordPress image gallery more user-friendly and organised by adding a category filter. With a category filter, visitors can easily browse through specific image categories, making it easy to..."
image: https://nexterwp.com/wp-content/uploads/2024/05/create-wordpress-image-gallery-with-category-filter-1024x519.jpg
word_count: 288
---

# How to Create WordPress Image Gallery with Category Filter?

## Key Takeaways

- Nexter Blocks includes the Media Listing block, enabling users to create a WordPress image gallery with a category filter.
- The Category option is available only for the Repeater layout in the Media Listing block.
- Users can customize the filter label and style for category filters in their image galleries.

Make your WordPress image gallery more user-friendly and organised by adding a category filter. With a category filter, visitors can easily browse through specific image categories, making it easy to find the images they're looking for.

With the Media Listing block from the Nexter Blocks, you can easily create a WordPress image gallery with a category filter.

*To check the complete feature overview documentation of the Nexter Blocks Media Listing block,** [click here](/docs/media-listing-block-settings-overview/).*

***Requirement  - This block is a part of the Nexter Blocks, make sure its installed & activated to enjoy all its powers.***

[LIVE BLOCK LINK](https://nexterwp.com/nexter-blocks/listing/wordpress-image-gallery/)

To do this, add the Media Listing block on the page,

1. Select **Images** from the **Type** section.

2. Then select the appropriate listing style and layout from the **Layout** tab.

> *Note: The ****Category**** option is only available for ****Repeater****.*

3. Go to the **Content** tab, and choose **Repeater** from the **Select Option** section.

Make sure you’ve added and assigned categories to your images while adding content to each repeater item.

4. Then go to the **Filters** tab, and turn on the **Category Wise Filter** toggle.

> *Note: Category filter is not available for the ****Carousel**** layout.*

Now you’ll see filter options in your image gallery that you can use to filter images by category.

![](https://nexterwp.com/wp-content/uploads/2023/06/media-listing-layout-category-wise-filter-new.gif)

> *Note: Similarly, you can add a category filter to a video gallery by selecting ****Videos**** from the ****Type**** section.*

You can edit the ‘All’ filter label from the **All Category** **Text** field.

From the **Filter** **Style** and **Filter** **Hover Style,** you can choose different styles for the category filter labels for normal and hover states.

From the **Filter Alignment** section, you can align the filter label.

![media listing category wise filter demo](https://nexterwp.com/wp-content/uploads/2023/06/media-listing-category-wise-filter-demo.gif)

Also, check [How to Create a Video Carousel in WordPress](https://nexterwp.com/docs/create-video-carousel-in-wordpress/).

## Frequently Asked Questions

**Q: What should I do if the category filter isn't showing up in my image gallery?**
A: If the category filter isn't appearing, ensure you have selected 'Repeater' in the Content tab of the Media Listing block. The category filter option is only available for the Repeater layout. Additionally, verify that you've added and assigned categories to your images in each repeater item.

**Q: What is the best layout to use for an image gallery with category filters?**
A: The best layout for an image gallery with category filters is the Repeater layout, as it supports the category filter feature. Ensure you select this layout in the Layout tab to enable filtering options for your images.

**Q: Does using the Media Listing block impact page load speed?**
A: The Media Listing block from Nexter Blocks is designed to be lightweight, loading only 1 CSS and 1 JS file per page. This means it should not significantly slow down your page. However, the total number of images and their sizes can still affect load times, so optimize your images for best performance.

**Q: What happens if I try to use the category filter with the Carousel layout?**
A: The category filter is not available for the Carousel layout in the Media Listing block. If you want to use category filtering, you must select the Repeater layout instead, which supports this feature.
