Searching for Dates in Tablepress
-
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
-
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,
Tobiashttp://www.d2softball.com/bowie-state/
Thanks for looking into this for me!
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,
TobiasTobias, 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.
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,
TobiasHi,
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 for2/12
, just add a\
before the/
and search for2\/12
.Regards,
TobiasThank you! That’ll make going through the tables so much easier for me. Glad I could help and thanks for the workaround.
Hi,
no problem, you are very welcome! π Good to hear that this workaround helps!
Best wishes,
TobiasP.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!
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()
andwp_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,
TobiasHi,
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,
TobiasTobias,
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.
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,
TobiasP.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)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
- The topic ‘Searching for Dates in Tablepress’ is closed to new replies.