• Resolved titan_rising

    (@titan_rising)


    Hi. TablePress is the best table plugin for WordPress and I won’t certainly switch to another plugin despite the problem I came across.

    For future references I’m using:
    WordPress v.3.5.1
    TablePress v.0.9-RC
    Search Everything v.6.9.4.1

    On my website I prefer Template Tag Functions. Adding shortcode through visual editor isn’t the best solution in my case. When I’m adding ie. <?php echo do_shortcode( '[table id=23 /]' ) ?> inside my template file the table can’t be found by WordPress global search. If I’ll add through visual editor it works. Probably I’m doing something wrong, but I want to make sure, is anyone else have the same problem or is it just me? And the most importantly, how solve this problem?

    Regards. 🙂

    PS:
    <?php tablepress_print_table( 'id=23' ); ?>
    and
    <?php echo do_shortcode( '[table id=23 /]' ) ?>
    both are not working.
    PS2: I’m very sorry, but as for now I can’t include link to my website since it’s still in development.

    http://wordpress.org/extend/plugins/tablepress/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    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

    Thread Starter titan_rising

    (@titan_rising)

    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. 🙂

    Plugin Author TobiasBg

    (@tobiasbg)

    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

    http://www.wordPress.com Last time, I forgot.

    Plugin Author TobiasBg

    (@tobiasbg)

    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

    Plugin Author TobiasBg

    (@tobiasbg)

    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

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘TablePress and WordPress global search problem’ is closed to new replies.