Hi pawikan21,
Very easily you can do that by creating a simple table where you can format each cell separately and insert whatever you need. You can read more about Simple tables on this link
If you create a table from some data source(second option in the table wizard) then that is not possible like that because those tables are not editable, so you can try with this hook
wpdatatables_filter_link_cell( $formattedValue, $tableId )
This filter is applied to the value of an URL link column before it is passed to the front-end.
$formattedValue is the value of the cell(formated HTML link).
$tableId is the table identifier from the MySQL table (wp_wpdatatables).
hi,
thanks for your response.
I cannot use a simple table, as I need the sorting and search function, which is only available when I import a file, right?
I’m not sure where I am supposed to paste this code you shared: wpdatatables_filter_link_cell( $formattedValue, $tableId )
also, this will just lead to a page, correct? I need to be able to click on one specified linked cell, and a pop up will open displaying some text. wpDataTables should have this function, I guess, I just don’t know how to activate it.
thanks, again.
Hi pawikan21,
Yes, that is right. At the moment in the simple table is not possible to use data table options like searching, sorting, pagination…
That is the filter that you can use in your theme or child theme function.php file like this to filter data for link columns
// $formattedValue is formated HTML link
// $tableId is id of the table
function filterURLColumns ($formattedValue, $tableId){
// example for filtering table with id 1
if ($tableId == 1){
// your logic for filtering formattedValue
}
return $formattedValue;
}
add_filter('wpdatatables_filter_link_cell', 'filterURLColumns',10,2);
Please note that using hooks requires a certain level of programming skills and included support refers only to advice.
Yes, you will be redirected to those links.
Unfortunately, wpdatatables Lite does not have the functionality that you need. We have some functionality with our premium version and our add-on Master-detail but you will need to check that on our official site or to contact us over our support system (opening new Pre-purchase ticket) because support for the premium version is not allowed on this forum.
Thank you for understanding
Best regards