Datas from a form used as filters words in the tablepress shortcode
-
[Topic: Datas from a form used as filters words in the tablepress shortcode]
Hi everyone ??
Thank you for your awesome plugin Tobias ??I don’t know if you could help me with my problem, if it does not have anything to do with your plugin at all I am sorry, but maybe you have the answer…
I am using a “Form plugin” (won’t say the name as I don’t know if I can do that) and I am able to keep the datas to another page after submission.
this code alone is working just fine to show the form plugin data alone:
<?php echo myformplugin_get_item_value(‘name’);?>
shows
“Blabla”but when I try to put this as a filter word in your shortcode, it is not working (just showing a blank), for example with this code:
<?php echo do_shortcode(“[table id=5 filter=’. <?php echo myformplugin_get_item_value(‘name’);?>.&&.<?php echo myformplugin_get_item_value(’email’);?>’ datatables_columnfilterwidgets=true datatables_columnfilterwidgets_exclude_columns=1,2,7,8/]”); ?>
this code is showing a blank instead of filter words… ??
So I am just seeing the table without any filters applicated (the shortcode of tablepress alone works fine)How should I write this code? Can you help me?
If this has nothing to do with your plugin I am sorry I won’t bother you again with that ^^
Thanks ??
- The topic ‘Datas from a form used as filters words in the tablepress shortcode’ is closed to new replies.