URL link columns in wpDataTables

Video versionA video overview of URL link columns in wpDataTables

URL link columns in wpDataTablesURL Link column type and when to use it

“URL link” columns are used to render hyperlinks that can be clicked to open pages within your website, or in external websites.

  • Rendering rules: If the content of the cells contains a combination of “two sticks” – || – everything to the left of this combination is used as an URL address for the link, and everything to the right as displayed text. For example:
    https://wpdatatables.com||Check out wpDataTables
    will be rendered as:
    Check out wpDataTables
    If the “||” combination is not found in the content, the entire content will be used both for the link and as the display value. For example:
    will be rendered as:
  • Sorting rules: alphabetical.
  • Applicable filter types: text.
  • Editor input type: One-line edit, Attachment
  • Issues to note: sometimes issues may appear when you’re sorting on URL columns that feature a complicated HTML structure.

In wpDataTables 2.1 and higher, additional settings for URL link columns are available:

  1. You can configure how the link should be opened, in the new tab or the same tab.
  2. This option allows you to display the link as a button.
  3. You can set the button display text.
  4. You can set the button CSS class.

ExampleDemo table with URL Link columns

Engine link” column in this table is an URL link column.

wdt_ID Engine name Engine link Link Year established
1 Google Google 1998
2 Yahoo! Yahoo! 1994
3 Bing Bing 2009
wdt_ID Engine name Engine link Link Year established

Do you have the best

essential plugins installed?

Grab the best 46 plugins. Tested and sorted.

Plugins for SEO, Caching, Security, Design and UX, Stats & analytics, Social sharing. Only the best ones.

By clicking "subscribe" you consent that the information you provide via this form will be securely processed and stored in compliance with EU privacy laws (GDPR).

Thank you for subscribing! Please check your inbox to download the WordPress goodies.