I'm new to wpDataTables so hopefully this is an easy one, but I couldn't find the answer to this in the documentation.
I'm trying to create a table that will have a list of products, with the product names being external links to their product pages. Unfortunately, this makes it impossible to sort the data by the product name because the column gets sorted alphabetically by the url.
This would make it really confusing for users since the url text is invisible and it gives the impression that the sorting function isn't working.
Is there a setting somewhere that will make sorting ignore invisible url text?
You can add the column as a "string" type column, with editor input type set to "One line edit" instead of "URL link". Then you can add your links like this:
And so on. When you do this, your table will only display "A website" and "B website", so when you enable sorting, it will follow the website names, and disregard the HTML tags.
Hi,
I'm new to wpDataTables so hopefully this is an easy one, but I couldn't find the answer to this in the documentation.
I'm trying to create a table that will have a list of products, with the product names being external links to their product pages. Unfortunately, this makes it impossible to sort the data by the product name because the column gets sorted alphabetically by the url.
This would make it really confusing for users since the url text is invisible and it gives the impression that the sorting function isn't working.
Is there a setting somewhere that will make sorting ignore invisible url text?
Hello Calina
Thank you for your purchase.
You can add the column as a "string" type column, with editor input type set to "One line edit" instead of "URL link". Then you can add your links like this:
And so on. When you do this, your table will only display "A website" and "B website", so when you enable sorting, it will follow the website names, and disregard the HTML tags.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables