Please wait...

Currency, percentage and other columns

Video versionA video overview of Currency, percentage and other columns in wpDataTables

Currency, percentage and similar column in wpDataTablesHow to display numeric data with additional symbols (currency, percentage, units)

Sometimes you don’t need just an integer, or a float column, since you’re referring to percentage, or to money – amounts in euros, dollars, etc.

Adding all of these as column types would make the plugin usage confusing for users, so we found a different solution: we¬†added a “Cell content prefix” and “Cell content suffix” block for each of the column settings.

cell content prefix suffix

Whatever you enter in the “Cell content prefix” (E.g. $ sign, or other currency) will be rendered in each cell of this column before the actual cell value; whatever you enter in the “Cell content suffix” (E.g. “%” or “pcs.”) will be rendered after the actual cell value, and this will not affect sorting, filtering, or any other column functions.

ExampleDemo table with currency columns

E.g. for this table the “Yearly revenuecolumn has a “$” sign defined in the “Cell content prefix“:

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.