Please wait...

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:

https://wpdatatables.com

will be rendered as:

https://wpdatatables.com

  • Sorting rules: alphabetical.
  • Applicable filter types: text.
  • Issues to note: sometimes issues may appear when you’re sorting on URL columns that feature a complicated HTML structure.
URLlinkcolumn

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

Never miss new features!

Join 2000+ newsletter subscribers

Never miss notifications about new cool features, promotions, giveaways or freebies - subscribe to our newsletter! We send about one mail per month, and do our best to keep our announcements interesting.

We never spam or disclose your address to anyone.