• Resolved tiger2deuce

    (@tiger2deuce)


    Hi Tobias,

    I’m recording scores for softball and I have many teams’ schedules set up in tables by date. I would like to search my tables by date, but it doesn’t seem like I can do this. For example, I have the date in a cell as 2/12, but when I type 2/12 in the search field, no results are displayed. Could you help me with this?

    Thanks, Kris

    https://wordpress.org/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    That sounds strange, and I can’t really reproduce this. Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter tiger2deuce

    (@tiger2deuce)

    http://www.d2softball.com/bowie-state/

    Thanks for looking into this for me!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for the link.
    Now, which Search field are you refering to here? The “Google Custom Search” field on the right? If so, my assumption is that it simply takes a while until Google re-crawls your site and then also indexes those dates.

    Regards,
    Tobias

    Thread Starter tiger2deuce

    (@tiger2deuce)

    Tobias, it’s actually the search tables function in tablepress (under the admin section). I can search for team names, but when I type in the date and hit search tables, it just comes up blank.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for the clarification! Indeed, there seems to be some problem with search terms that contain / there. I’ll investigate this and reply here as soon as I find something!

    Regards,
    Tobias

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    good news πŸ™‚ There’s indeed a small bug related to the search for strings that contains / on the “All Tables” screen. I will fix this in the next release of TablePress. Thanks for reporting the issue!

    Meanwhile, until the next version is available, there’s a small workaround that you can use:
    Instead of searching for 2/12, just add a \ before the / and search for 2\/12.

    Regards,
    Tobias

    Thread Starter tiger2deuce

    (@tiger2deuce)

    Thank you! That’ll make going through the tables so much easier for me. Glad I could help and thanks for the workaround.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! πŸ™‚ Good to hear that this workaround helps!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Tobias,
    I am sorry, but I’m having hardcore search problems. Didn’t want to start a new thread, figured I’d just hijack this one.

    The testing environment is setup here: http://staging.kaf-tech.com/mc-metal-clad-cables/fire-alarm-control-cable/#product-information

    It seems as though no tabled text will appear in the search results. If there’s any chance you have an opportunity to let me know what I can do.

    I’ve deactivated all plugins, still no luck.
    I’ve tried installing “search everything” and “custom field search” plugins with no solution.
    The theme has wp_head() and wp_footer() functions. (saw that in a previous thread)

    Appreciate any support you might be able to offer. Thank you!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This is strange and I don’t really see why this is. Those extra plugins are not necessary here, and they could actually be interfering with the search integration, so I suggest that you turn those off.
    Also, wp_head() and wp_footer() don’t influence this (but they are required for other things).

    If possible, I’d like to take a direct look at this on your site. Could you therefore please create a temporary admin account for me and send me the details via email (the address is in the main plugin file “tablepress.php”)? That way, I can investigate this directly. Thanks!

    Regards,
    Tobias

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks to the account, I could take a look at this on the site, and here’s what I found: From what I can see, the content for the pages/products in question is not stored in regular WordPress posts, but in a Custom Post Type. This is usually fine, and that content will be searched. However, the theme seems to be offering a feature to create those tabs on the page, and it offers individual textareas for the content for the individual tabs. My assumption is that that content is then not stored as plain text within the Custom Post Type, but in some other form. Due to that, the WordPress search does not search that content and does not find the Shortcodes in it.
    Unfortunately, I have no real idea on how to change this, as this is a functionality that highly depends on the theme πŸ™ Sorry.

    Regards,
    Tobias

    JoE

    (@pgsjoe)

    Tobias,
    Thank you for taking the time to look into this. Your answer at least gave us what we needed to understand the problem. The site was built upon the Roots framework, so I wonder if it may have been a correlation between that particular structure and the Tablepress plugin.

    Thank you again, your dedication to the support of your plugin is truly appreciated.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! Sorry that I couldn’t solve this, ultimately.
    Yes, this is probably related to how the Roots framework stores the data for the tabs.
    The TablePress search integration basically searches through all tables first, and then tells the WordPress search to search all posts/pages for the relevant Shortcodes as well (additionally to the actual search terms). However, this search does not seem to pick up Shortcodes in the content that Roots stores, for some reason.

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Hey Tobias,
    We’ve begun converting the site in question abandoning the Roots framework. We’re using the Advanced Custom Fields “flexible content” field to store the shortcode value combined with the Relevanssi Search plugin to hopefully generate the results. Still can’t get anything to register in the results.

    Any suggestion of what we might need to do inside the theme to make these results show up? We’re using Tablepress to store detailed information such as available model numbers for specific products.

    So we have:
    Custom Post Type (collection of all products)
    -> ACF Flexible Content Fields (specific product information)
    -> Tablepress (available models, numbers and engineering specifics shortcode placed inside of the Flexible Content Field)

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    I’m not totally sure, but my assumption is that this is related to the “flexible content” fields of ACF. Depending on how those store their data internally, this might be the same issue as with Roots: TablePress can only find its Shortcodes in other posts/pages (i.e. data that is stored in the wp_posts table in the database).

    Regards,
    Tobias

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Searching for Dates in Tablepress’ is closed to new replies.