Title: URL Link
Last modified: January 18, 2021

---

# URL Link

 *  Resolved [pawikan21](https://wordpress.org/support/users/pawikan21/)
 * (@pawikan21)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/url-link-8/)
 * Hi,
 * I downloaded the free wp data table plug in and created a table where I formatted
   the second column as a URL link column. Now I need to define for each cell the
   actual URL link, e.g. cell A2 going to website A, cell B2 going to website B 
   etc., but I can’t find where I can do that and I also can’t find any tutorial
   on this one. The only one I found had a very different interface.
 * Thanks for helping me out.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * (@wpdatatables)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/url-link-8/#post-13928290)
 * 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](https://wpdatatables.com/documentation/creating-new-wpdatatables-with-table-constructor/creating-a-simple-table-with-wpdatatables/)
 * 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).
 *  Thread Starter [pawikan21](https://wordpress.org/support/users/pawikan21/)
 * (@pawikan21)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/url-link-8/#post-13957495)
 * 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.
 *  Plugin Author [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * (@wpdatatables)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/url-link-8/#post-13964165)
 * 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](https://developer.wordpress.org/plugins/hooks/filters/) 
   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](https://tmsplugins.ticksy.com/) (opening new Pre-purchase ticket)
   because support for the premium version is not allowed on this forum.
 * Thank you for understanding
    Best regards

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘URL Link’ is closed to new replies.

 * ![](https://ps.w.org/wpdatatables/assets/icon-128x128.gif?rev=3010404)
 * [wpDataTables - WordPress Data Table, Dynamic Tables & Table Charts Plugin](https://wordpress.org/plugins/wpdatatables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdatatables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdatatables/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdatatables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdatatables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdatatables/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/url-link-8/#post-13964165)
 * Status: resolved