---
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-03-31
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)

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.