---
title: "How to Create WordPress Image Gallery with Custom Unique Link to Each Image?"
url: https://nexterwp.com/docs/create-wordpress-image-gallery-with-custom-link-to-each-image/
date: 2023-06-17
modified: 2026-04-14
author: "Aditya Sharma"
description: "Looking to enhance your WordPress image gallery with custom links? Adding custom links to each image in your gallery can provide a seamless way to direct visitors to specific pages,..."
image: https://nexterwp.com/wp-content/uploads/2024/05/create-wordpress-image-gallery-with-custom-link-to-each-image-1024x519.jpg
word_count: 244
---

# How to Create WordPress Image Gallery with Custom Unique Link to Each Image?

## Key Takeaways

- Nexter Blocks' Media Listing block allows users to add custom links to each image in a WordPress photo gallery.
- Users must select 'No' from the Popup Layout dropdown to ensure proper layout when using the Media Listing block.
- The Links option for adding URLs is only available when using the Repeater in the Content tab of the Media Listing block.

Looking to enhance your WordPress image gallery with custom links? Adding custom links to each image in your gallery can provide a seamless way to direct visitors to specific pages, products, or external resources.

With the Media Listing block from the Nexter Blocks, you can easily add a custom link to each image of a WordPress photo gallery.

*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.

Make sure to select **No** from the **Popup Layout** dropdown. 

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

Ensure to add URLs in the **Links** field while adding content in each repeater item.

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

Now to make the entire image clickable, 

4. Go to the **Extra Options** tab and turn on the **Box Link** toggle, 

5. Then turn on the **Force Custom URL **toggle to enable the custom link.

![](https://nexterwp.com/wp-content/uploads/2023/06/media-listing-layout-repeater-link-box-link-new.gif)

> *Note: Similarly, you can add custom links to videos of a video gallery by selecting ****Videos**** from the ****Type* ***section.*

Also, read [How to Create WordPress Image Gallery with Category Filter](https://nexterwp.com/docs/create-wordpress-image-gallery-with-category-filter/).

## Frequently Asked Questions

**Q: What should I do if the custom links are not working in my WordPress image gallery?**
A: If the custom links are not functioning, ensure that you have enabled the 'Force Custom URL' toggle in the Extra Options tab. This setting is crucial for making the entire image clickable with the custom link. Additionally, verify that you have entered the URLs correctly in the Links field while adding content in each repeater item.

**Q: What is the best layout option for displaying images with custom links in my gallery?**
A: Choosing the appropriate listing style and layout from the Layout tab is essential for showcasing your images effectively. Consider the visual flow and how users will interact with the gallery. A well-chosen layout can significantly impact user experience and engagement with your content.

**Q: What happens if I forget to select 'No' from the Popup Layout dropdown?**
A: If you do not select 'No' from the Popup Layout dropdown, the images may open in a popup instead of directing users to the custom links you set. This can disrupt the intended navigation experience, so it's important to ensure this setting is configured correctly.

**Q: How can I create a gallery with category filters in addition to custom links?**
A: To create a gallery with category filters, you can refer to the tutorial on [How to Create WordPress Image Gallery with Category Filter](https://nexterwp.com/docs/create-wordpress-image-gallery-with-category-filter/). This approach allows you to enhance user navigation by enabling visitors to filter images based on categories while still utilizing custom links.
