---
title: "How to Add Button Link in a Cell of a WordPress Table?"
url: https://nexterwp.com/docs/add-button-in-wordpress-table/
date: 2023-04-11
modified: 2026-06-12
author: "Aditya Sharma"
description: "Adding a button to a WordPress table lets visitors take immediate action directly from any row. With a clickable button in each cell, you can link to product pages, booking..."
image: https://nexterwp.com/wp-content/uploads/2024/05/add-button-in-wordpress-table-1024x519.jpg
word_count: 343
---

# How to Add Button Link in a Cell of a WordPress Table?

## Key Takeaways

- Nexter Blocks Data Table block adds a button with a custom URL to any cell in the WordPress block editor.
- Table Body tab sets the Action section to Cell Content, then the Content tab turns on the Button toggle to place a button directly inside that table cell.
- Add Custom Attributes toggle adds custom HTML attributes such as rel or tracking data, which is useful for affiliate links or passing click data to an analytics system.

Adding a button to a WordPress table lets visitors take immediate action directly from any row. With a clickable button in each cell, you can link to product pages, booking forms, or individual entries without cluttering the table layout.

The Data Table block in Nexter Blocks lets you add a button with a custom URL to any cell in the WordPress block editor.

**Best Used For:**

- eCommerce product comparison tables with a “Buy Now” or “View Details” button per row

- Service directory tables where each row links to a dedicated booking or contact page

- Portfolio or resource tables that link visitors to individual project or case study pages

*To check the complete feature overview documentation of the Nexter Blocks Data Table block, [click here](/docs/data-table-block-settings-overview/).*

**Requirement – This block is a part of Nexter Blocks. Make sure it is installed and activated.**

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

To add a button to a table cell, add the Data Table block to the page and follow these steps:

Go to the **Table Body** tab and open the item where you want to add the button.

Make sure the **Action** section is set to **Cell Content**.

From the **Content** tab, turn on the **Button** toggle.

![](https://nexterwp.com/wp-content/uploads/2023/04/data-table-table-body-button-new.png)

Enabling the toggle adds a button directly inside that table cell.

In the **Button Text** field, enter the label that will appear on the button. Use a direct call-to-action like “Book Now” or “View Details” so visitors understand what clicking will do. In the **URL** field, enter the destination link for the button.

To add a custom HTML attribute to the button link, such as a `rel` attribute or a tracking data attribute, turn on the **Add Custom Attributes** toggle. This is useful when you need to mark affiliate links or pass click data to an analytics system.

To change the button color, typography, padding, and border, go to the **Style** tab. To place your Data Table inside a styled section with a background color or padding, use the [Container block](https://nexterwp.com/docs/add-a-container-in-wordpress/).

![](https://nexterwp.com/wp-content/uploads/2023/04/data-table-content-button-demo-3.png)

Also, check [How to Limit Number of Rows in a WordPress Table](https://nexterwp.com/docs/limit-number-of-rows-in-a-wordpress-table/).