Forum Replies Created
Try updating The Events Calendar plugin (not Pro) also. I noticed that you need to have them both running the latest version for this bug to be resolved.
Just to add to 2) I don’t think it is possible to have events/tags/tag. This is how WP categories work. TEC doesn’t use WP categories.
Hope you find a solution.
1) Great stuff
2) See the explanation from Jonah in this thread which may help https://theeventscalendar.com/support/forums/topic/hierarchy-request/April 13, 2012 at 5:06 pm in reply to: Multi-day cut-off time not working on future calendars #17888
Just to touch on the “interfering” query issue you had – if you modify the default query with say, query_posts(), then it is always a good idea to reset the query after you’ve finished with it using wp_reset_query()
If you alter the main loop your post-related global variables and template tags will be altered. Conditional tags that are called after you call query_posts() will also be altered. If you didn’t reset the query then this is probably why you were having problems.
More info on this here:
Lots of TEC users have been asking about displaying all events on a Google map. I have been able to do this quite easily so thought i’d show my example:
1) I am pretty sure it is post_tag that you want and not “tags”.
2) You may need to flush your permalinks. Do this by simply visiting your permalink settings in WP admin.
In my personal opinion, you could probably get away with doing this yourself and save some cash. Install the following plugins:
The Events Calendar
Geo Mashup Search
The Geo Mashup Search plugin will let a user enter their current address (or an address anywhere) and then returns a list of events with “distance away” information. The Geo Mashup plugin will display everything nicely on a Google map.
No real need to write code as the plugins take care of that.
I have done it using a combination of the Geo Mashup plugin, The Events Calendar plugin and some custom code.
It is pretty straightforward, you have to geo-tag events with a longitude and latitude so that they can be filtered by radius from a given point and then returned in a list of search results.
Were you looking for someone to code this for you or just some general pointers?
Glad to hear you resolved the issue! your site looks good!
You can do this by removing the link to the calendar from your list.php template. Remove:
Scrap that request – You can do it at the point of registering the taxonomy
works now. Thanks for your help.
I already tried the function with both the plugins_loaded hook and the init hook but it doesn’t seem work with tribe_events and tribe_venue.
it is strange because I can get it to work with custom post types and custom taxonomies that I have set up myself in fucntions.php.
is it possible for you to do a quick test at your end to see if it works for you?
Have you geo-coded any events? You have to geo-tag events before they appear. The plugin makes it easy to do this. Go to
Settings > Geo Mashup > and then make sure “Events” is checked where it says “Collect location for”.
Then when you create an event, you will have a new metabox appear where you can add an address to the event.
Once you’ve done this some events should show up.
You can put a map outside posts and pages by using the template tag GeoMashup::map();
This makes a “Contextual Map”. Technically contextual maps include will include events that are in the current global query results. You have to pass the map some events to display. If you add the code outside the global query then nothing will show up.
I have the code in my list.php which allows me to display a map of events instead of a list of events. It won’t matter which DIV you place the code in, but it does need to be within the global query.
The code is specific to the Geo Mashup plugin:
If you haven’t already installed Geo Mashup, you will need to install the plugin for my code to work.
The code should go within the loop. For example, if you want the map to appear on a page called “myevents” then create a new template in your theme’s directory and call it page-myevents.php
Use this code (no styling provided):
With reference to the “event-map” name. This isn’t declared in the plugin. it just useful to have if you have more than one map on your site. Feel free to remove it.