How do I add e-mail link columns to a WordPress table?

You add e-mail link columns in wpDataTables to render clickable hyperlinks that open the visitor’s default mail application to write a message. “E-mail link” columns are used to render the hyperlinks which can be clicked to open default mail applications to write messages.

An e-mail column reads the cell content and, using an optional two-stick separator, decides what to link and what to display.

  • 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 E-mail address for the link, and everything to the right as displayed text. Like this:
  • [email protected]||Write me an e-mail
  • will be rendered as this:
  • If the “||” combination is not found in the content, the entire content will be used for both the link, and as the display value. Like this:
  • Sorting rules: alphabetical.
  • Applicable filter types: text.

Issues to note: some issues may appear when you’re sorting on E-mail columns that feature a complicated HTML structure

What does a table with e-mail columns look like?

The e-mail column renders each address as a clickable mail link. The “Referral e-mail” column in this table is an E-mail type column.

Wait, Before You Download!

To get your hands on wpDataTables Lite, please enter your email address below. We’ll send you a direct download link and keep you updated on existing features along with helpful tips and tricks!

By continuing, I accept Privacy Policy and T&C
Mail Box