See text version of the tutorial

String columns are the default and the most basic column types of wpDataTables. You can put any content in them, it will be rendered “as is”, so if you e.g. want to put some specific HTML (buttons, iframes, or anything else) you can generate it in the data source, and it will be rendered on the front-end.

Rendering rules: the only thing to note is that newline characters in the input data source will be translated to “<br/>” tag in the front-end.

Sorting rules: alphabetical.

Applicable filter types: text, selectbox, checkbox.

Issues to note: if you use some HTML inside of string columns, sorting and filtering by this column can work weird (since it will apply the sorting rules also to HTML).

Example:

“First Name”, “Last Name” and “Position” columns of this table are string type columns:

Employees test - MySQL example



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.