Hi,
thanks for your question, and sorry for the trouble.
The reason for this is that TablePress only registers its Shortcode and Template Tag functions on the frontend part of WordPress. (When I made that decision, things like page builders did not yet exist.)
You will basically have to load the TablePress frontend controllers in the admin area as well, with something like https://gist.github.com/MatthewEppelsheimer/0deeae286f905b2c4c4f
Regards,
Tobias
Many many thanks for your help. it worked!
Table loading properly but javascript not loading for that reason search and order button is missing: http://prntscr.com/jo91e8
Hi,
that’s kind of expected. Getting the JS functions to work in the admin area will be very difficult, because of how that would have to be loaded. Unfortunately, I don’t know a way to make that work, sorry.
Regards,
Tobias
I managed the javascript issue by loading it manually 🙂
Can you tell me how can i get table id and name as array?
Hi,
what do you mean with that? Where do you want to get them from and based on what information?
Regards,
Tobias
I mean I want to make a dynamic list of all tables: http://prntscr.com/johhen but don’t understand how to get the table id as php array?
If you give me any hints how to get the table id in php so it would be great help for me.
Hi,
you could get them in PHP by calling
$table_ids_array = TablePress::$model_table->load_all( false );
Regards,
Tobias
Thanks for the id how can i get table name? http://prntscr.com/joz0yh
Hi,
you will have to loop over the array and call another function, similar to this:
https://github.com/TobiasBg/TablePress/blob/master/views/view-export.php#L124-L136
Regards,
Tobias
Thanks for your help, Now all working good. http://prntscr.com/jpu4bz
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
Hi Tobias,
This post is very useful for me. I am wondering, where I should put this file to fix the Elementor problem? “enable-back-end-tablepress-shortcodes.php”
Thanks in advance!
Hi,
I’m not sure where you got that file from, but most likely it’s a WordPress plugin that you’ll have to put in /wp-content/plugins/ and then activate.
Regards,
Tobias
Oh ok, I am asking because you recommended this to enable TablePress in Elementor. You talked about this in this threads above, 2 months ago 🙂
“…You will basically have to load the TablePress frontend controllers in the admin area as well, with something like https://gist.github.com/MatthewEppelsheimer/0deeae286f905b2c4c4f…”
Regards,
Martin
-
This reply was modified 7 years, 9 months ago by
mmartinp.