The logic behind Simple tables is different than any other table type, but I can't say why the shortcodes don't work with other types.
I suppose you have enabled "Parse shortcodes in strings" in wpDataTables settings?
The ticket has been forwarded to our developers, but could you please re-enable the wp-admin log-in credentials, so they can log in, and see what's going on?
The issue here is that you're trying to add the shortcode to the header. While it works with Simple tables (because in essence they don't have an actual header), it won't work with other table types. You can only include shortcodes in cells (string-type columns).
Hi
I started to use the option to insert a shortcode in the "simple" table style.
Please look at the example in https://www.machiningdoctor.com/test-table-with-tooltip/
I use it to display tooltips about the header which is very useful. The shortcode in this case is the format:
I tried to add tooltips also to other table types (SQL), but it does not matter what I put in the header it gets erased by the plugin.
Do you have a workaround for this?
Thanks,
Erez
Hello Erez
The logic behind Simple tables is different than any other table type, but I can't say why the shortcodes don't work with other types.
I suppose you have enabled "Parse shortcodes in strings" in wpDataTables settings?
The ticket has been forwarded to our developers, but could you please re-enable the wp-admin log-in credentials, so they can log in, and see what's going on?
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
Hi
The Shortcode option is active.
To isolate the problem I created a new table on a new page.
Table-id: 108
Page: https://www.machiningdoctor.com/test-table-with-a-shortcode-in-title/
The shortcode is placed in the HTML of the page and works fine. (Hover on the word MR).
The exact same shortcode is placed in the header of the right column, but nothing is displayed.
You can login without a password for 3 days using this temporary link:
https://www.machiningdoctor.com/wp-admin/?wtlwp_token=863a9b6b794e73bd0666c3e3af98bcb5
THANKS!
Erez
Hello again Erez
The issue here is that you're trying to add the shortcode to the header. While it works with Simple tables (because in essence they don't have an actual header), it won't work with other table types. You can only include shortcodes in cells (string-type columns).
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
Thanks for the quick reply and clarification.
The only reason I need to add a shortcode to the headers is to create a tooltip that explains to the user more about the column.
Do you have another way to implement this?
Thanks
Erez
Not really, Erez
This would have to be done as a custom solution, probably with the use of custom JS and/or hooks or filters.
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