Hi,
thanks for your post, and sorry for the trouble.
Unfortunately, I just don’t see a solution for your problem. The search integration of TablePress into the regular WordPress search will only work if the Shortcode is entered into the page/post content directly (i.e. in the Visual or Text editor). It will not work with tables that are added via a template tag function.
The reason for that is how the search integration works:
When a search is performed, TablePress will take the search term and look trough all available tables, and check whether they match. It will then take the table IDs of all tables that matched and tell the WordPress search to look for the corresponding Shortcodes in the content of all published pages/posts. Unfortunately, the WordPress search can only search through that, as that’s the only content that is stored in the database. It does not search through template files (which is where your template tags are).
So, due to the way how the WordPress search works, there’s no way for TablePress to find your tables 🙁 The only possibility for that is if you use a search that is more like Google, i.e. that searches the final rendered page.
Regards,
Tobias
Hi Tobias.
Thanks for your fast and comprehensive explanation. Now I can more understand about WordPress search engine. Also thanks for taking the time to develop the plugin. 🙂
Regards. 🙂
Hi,
sure, no problem! You are very welcome!
Good to hear that you like the plugin 🙂
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
I cannot open login page for worldpress. I think that the http://www.wordPress has been blocked from my country. I only can go on to WordPress support and I only have access in the Forum.
http://wordpress.org/support/register.php
Hi,
this is the support forums for the WordPress plugin TablePress.
Please try asking again in the general forums at http://wordpress.org/support/forum/how-to-and-troubleshooting for problems with your installation.
Regards,
Tobias
HI Tobias,
Before all thanks so much for your amazing plugin, and for your promptly support.
I’m looking to create a catalog database for a huge amount of products, and TablePress it’s a perfect way to easily display the products on the page. I would like to know how should I manage to perform a global search on all cells, all tables in my database. The idea is retrieve and display the row(s) where any of the cell’s content match the search term(s). I’m actually testing but when I perform a search nothing is coming out.
Thank you very much!
site: http://www.sofiajuan.com/test
table page example: http://sofiajuan.com/test/?page_id=1162
Hi,
thanks for your question and sorry for the trouble!
To be honest, I’m not sure why the search is not working here, but given what you are trying to do, I’d actually recommend to not use TablePress.
While TablePress is good for handling small to medium sized tables, it’s usually not the best option for database-like projects, especially, if those require good search or query functions. I therefore suggest that you explore a custom solution for your project, based on custom PHP code and a mySQL databaes table, where you store your catalog and the products. That will be much more flexible and give you better search and query options. You can then still create an HTML table manually, and you can still use the features like sort and pagination, by manually loading the DataTables JS library from http://www.datatables.net.
Regards,
Tobias