Direct searches, categories and tags to filtered Event Calendar view
These are the URLs generated by our demo site’s Filter Bar:
And the Tribe Bar’s keyword search is http://wpshindig.com/events/month/?tribe-bar-search=meetup
Are these not the URLs your site is generating?
If not, I’d suggest following these recommended troubleshooting steps for your own site:
There might be some new updates available. Could you please make sure all your Modern Tribe plugins (and WordPress core) are at their latest versions?
- Downloads / Version Numbers
- License Keys
- TEC Automatic Updates
- or TEC Manual Updates
- WordPress core updates
Once you verify you’re on the latest versions, please test to see if the issue is still happening for you.
If it is, please follow our Testing for Conflicts Guide (basically switch to Twenty Seventeen theme and deactivate all plugins and custom code other than Modern Tribe plugins) and see if that helps narrow down the cause of this.
Of course, we always recommend restorable database and file backups before modifying anything on your site.
If it doesn’t, please enable WP_DEBUG and WP_DEBUG_LOG (which will create a file on your server at /wp-content/debug.log if there are any WP_DEBUG messages) and share any debug messages you see while trying to replicate this issue and doing other things on your site relevant to this ticket (such as visiting your site’s home page, events page, single-event pages, and anything else you can think to do).
Then, please share your System Information (while in Testing for Conflicts Mode) in a Private Reply. That will give me a lot of extra information to help troubleshoot this.
Let us know what you find out.
Thank you for the detailed response, this is very helpful. Yes, we’re using tags only for events, and the same for site searches.
A code snippet would be great to ensure tags and any site searches i.e. /?s=<search_query_goes_here> are redirected to the Events view.
If it’s possible to include Event Categories in this redirect also, as the default links to Categories i.e. /events/category/<category_name>/ do not result in the Filter Bar showing the filtered category in the Events view.
Shane, please let me know each of these go for you:
Try this snippet:
2) Site Searches
example.com/?s=screening would display both Posts and Events (and any other post types that are eligible to be displayed in search results).
If you’re wanting all site searches to be redirected to search only events — as if they would have entered the search phrase into the Tribe Bar’s Keyword search box, please try this snippet:
3) Event Categories (not regular Post Categories)
They seem to be working as expected. For example, http://eventfamous.com/phnom-penh/events/category/classes-training-courses/ displays the Filter Bar like all other Events views and also has the applicable Event Category checked in the Filter Bar drop-down.
Thank you so much for your thorough response and the code snippets. Both work perfectly! And yes, I can see that the Event Category view is working correctly. I was confused as the filtered category isn’t displayed on the Filter Bar when you first arrive on the screen, but when you click the Event Category menu it is ticked (and if refiltered by Tag, Time, Venue etc it retains the category filter correctly).
The topic ‘Direct searches, categories and tags to filtered Event Calendar view’ is closed to new replies.