---
title: "How to Add a Coupon Code with Redirection in WordPress? (New Tab or Same Tab)"
url: https://nexterwp.com/docs/add-a-coupon-code-with-redirection-in-wordpress-new-tab-or-same-tab/
date: 2024-12-31
modified: 2026-08-18
author: "Aditya Sharma"
description: "Do you want to redirect users to a URL after they click on a coupon code in WordPress? Redirecting users after they click the coupon can be an effective way..."
image: https://nexterwp.com/wp-content/uploads/2024/12/How-to-Add-a-Coupon-Code-with-Redirection-in-WordPress_-New-Tab-or-Same-Tab-1024x519.jpg
word_count: 380
---

# How to Add a Coupon Code with Redirection in WordPress? (New Tab or Same Tab)

## Key Takeaways

- Nexter Blocks Coupon Code block redirects users to a URL in a new tab or the same tab after a click.
- Standard coupon setup uses the Coupon Type section, a title in the Title field, a Redirect Link field, and a Code field.
- Popup action with Tab Reverse toggle opens the discount popup in a new tab while opening the specified link in the old tab.

Do you want to redirect users to a URL after they click on a coupon code in WordPress? Redirecting users after they click the coupon can be an effective way to direct them to an affiliate website using your affiliate link, helping to increase your affiliate commissions.

With the Coupon Code block from Nexter Blocks, you can easily redirect users to a URL in a new tab or the same tab.

*To check the complete feature overview documentation of the Nexter Blocks Coupon Code block,* *[click here](https://nexterwp.com/docs/add-a-coupon-code-in-wordpress/).*

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

[LIVE BLOCK LINK](https://nexterwp.com/nexter-blocks/blocks/wordpress-coupon-code/)

### Open the Link in a New Tab

To do this, add the Coupon Code block to the page and follow the steps - 

1. Select **Standard** from the **Coupon Type** section. 

2. After selecting an appropriate style from the **Standard Style** section, add a title in the **Title** field.

3. Then in the **Redirect Link** field, you have to add the link where you want to redirect users to.

4. Make sure to add your coupon code in the **Code** field.

5. Then select the appropriate option from the **Select Action** section.

Now when a user clicks on the coupon code, it will open and redirect users to your specified link in a new tab while revealing the coupon code in the old tab.

### Open the Link in the Same Tab

To do this, add the Coupon Code widget to the page and follow the steps - 

1. Select **Standard** from the **Coupon Type** section. 

2. After selecting an appropriate style from the **Standard Style** section, add a title in the **Title** field.

3. Then in the **Redirect Link** field, you have to add the link where you want to redirect users to.

4. Make sure to add your coupon code in the **Code** field.

5. After that, select **Popup** from the **Select Action** section.

Then, do the necessary changes in the popup settings.

6. Finally, enable the **Tab Reverse** toggle from the **Extra Options** tab.

Now when a user clicks on the coupon code, it will open and redirect users to a new tab showing the discount popup while opening your specified link in the old tab.

## Frequently Asked Questions

**Q: Why is my coupon code not redirecting when I click it?**
A: The redirect only works when the Coupon Code block is set up with a Redirect Link and the right Select Action choice. In Nexter Blocks, the Standard coupon type uses the Redirect Link field for the destination, and the action controls whether it opens in a new tab or same tab. If the block is missing or not active, nothing will behave as expected because this feature is part of Nexter Blocks.

**Q: Can I open a coupon link in a new tab instead of replacing the current page?**
A: The Coupon Code block from Nexter Blocks supports opening the destination in a new tab. The setup uses Standard as the Coupon Type, then you add the Redirect Link, enter the coupon code, and choose the appropriate option from Select Action. That matters if you want users to keep the original page open while still landing on your affiliate or target URL.

**Q: How do I make a coupon code open in the same tab with a popup?**
A: The same-tab flow uses Standard coupon type, a Redirect Link, and Popup as the Select Action option. After that, the popup settings need their own adjustments, and Tab Reverse must be enabled from Extra Options. That combination is what makes the click open your specified link in one tab while showing the discount popup in the other behavior described on the page.

**Q: What do I need installed before using coupon code redirection in WordPress?**
A: Nexter Blocks has to be installed and activated first, because this Coupon Code feature is part of that package. The page also points to a complete feature overview on [click here](https://nexterwp.com/docs/add-a-coupon-code-in-wordpress/), which is useful if you want to understand how the block behaves before building it into a page. Without Nexter Blocks active, this tutorial’s settings won’t be available.

**Q: Is this coupon code redirection useful for affiliate links?**
A: This setup is built for affiliate-style redirects. The page explicitly says redirecting users after they click a coupon can direct them to an affiliate website using your affiliate link, which can help increase affiliate commissions. That makes it a better fit for promotional pages where you want the coupon click to send traffic somewhere specific instead of just revealing text.

**Q: What happens when someone clicks a coupon code set up with redirection?**
A: The click behavior depends on the action you choose. With a new-tab setup, users are sent to your specified link in a new tab while the coupon code stays visible in the old tab. With the same-tab setup using Popup plus Tab Reverse, they get redirected through a different tab behavior while also seeing the discount popup. That distinction matters if you want to preserve either continuity or attention on the original page.
