Product table links
WooCommerce Product Table will automatically link certain columns to the relevant single product page or product category archive. Use the links
option to disable them, or to have more fine-grained control over which columns are formatted as links.
Please note: links within the short or long description, excerpt or custom field columns are not controlled by the links
option. Please see our article on adding custom links for more information.
By default, your product table will create the following links:
- The
SKU
,ID
, andname
columns will link to the single product page. If you disable the Image Lightbox option then theimage
column will also be hyperlinked. - Clicking on the
categories
,attributes
,tags
or taxonomy columns will filter the table by that value. You can change this behavior using the search on click option below.

Product table with all clickable columns added to the table and formatted as links.
Setting the links option
The links
option can be controlled globally on the plugin settings page, or directly in the shortcode for each individual table. It can include the following values:
- Use
all
to make all possible columns in the table clickable (this is the default). - Use
none
orfalse
to disable all links to the single product page. - You can also use any combination of the following keywords, as a comma-separated list:
sku
- The ID column will be clickable (links to product)id
- The ID column will be clickable (links to product)image
- The image column (links to product)name
- The product name column (links to product)categories
- The categories column (links to product category archive page)tags
- The tags column (links to product tag archive page)attributes
– Any product attribute column (links to attribute archive page)terms
- Any custom taxonomy column (links to taxonomy archive page)
For example, if you use image,name
for the Links option then only the 'image' and 'name' columns will link to the single product page.
On the plugin settings page
You will find the 'Links' option on the plugin settings page (WooCommerce → Settings → Products → Product Tables). Enter a comma separated list of the columns that you would like to link to the single product page. For example:
Using the shortcode
You can also add the links
option directly to the product table shortcode. This allows you to control the links for individual tables, instead of globally.
Examples:
[product_table links="all"]
- All possible columns will link to the single product page.[product_table links="none"]
- All links to the single product page are disabled.[product_table links="name,categories"]
- Only the product name and categories columns are clickable.[product_table links="image,name,attributes"]
[product_table links="sku,terms"]
[product_table links="none"]
Links for attribute and custom taxonomy columns
If you want to have links from your attributes or custom taxonomy columns, but not other columns (such as name), use attributes
or terms
in your links option. E.g:
[product_table links="attributes"]
[product_table links="terms"]
Note: you cannot use the attribute/taxonomy column name in the links option - instead, just add attributes
or terms
to make all attribute/taxonomy columns clickable.
Links for custom fields
You cannot control custom field links or clickable buttons using the links option. Please see our article on custom buttons and links for more information.
Search on click
By default, clicking on the categories and tags columns in the table will search (i.e. filter) the table by that category or tag. This is a quick way of filtering the table if you have lots of products.
You can disable this search_on_click
feature so that when someone clicks on a category, tag, attribute or custom taxonomy term, then they will be taken to the relevant category/tag archive instead. This must be done directly in the shortcode.
Example: [product_table search_on_click="false"]
Tip: This option will only work correctly if your theme includes archive pages for categories/tags/attributes/custom taxonomy terms.
Can I link to an external URL or affiliate site?
The Links option described above controls the links to the single product page which are added automatically. There are a couple of options for linking to other URL's:
- Follow the instructions on this page to create custom links to any URL you choose, add buttons, and much more.
- Add your products using the External/Affiliate product type that comes with WooCommerce. This lets you reword the add to cart button and link it to a third party URL of your choice.
- Use WooCommerce Product Table with the free Redirection WordPress plugin. This plugin lets you redirect a URL to any product (e.g. to an affiliate link on a third party website such as Amazon). When someone clicks on a link to the product in the table, they will be taken to this URL instead.
Can I link to a quick view lightbox?
You can replace the links to the single product page with 'quick view' links that open extra product information in a popup window. To do this, you need to use WooCommerce Product Table with our other plugin, WooCommerce Quick View Pro.
Please see our separate article on how to use the two plugins together.