Problem:
The user would like to create an archive template for the Organizers and the Venues post types that are registered by
TheEventsCalendar plugin.
Solution:
The plugin registers both post types without the option to have archives. We can hook into the registering process and change the arguments of the post types. This is an example for the Venues post types(slug: tribe_venue):
Problem: I have a map with markers coming from a View. Each post displayed in the View will have one term assigned from a custom taxonomy. Depending on the assigned term, I would like to display a different marker icon on the map.
Solution: To use custom icons like this based on a taxonomy term, you cannot create the Markers using the configurations available in the Map block. Those Map block side configurations only allow for one icon to be used for all markers. Instead, you'll need to remove all Marker configurations from the Map block and insert a series of conditionals and Marker shortcodes in the View loop block. In a simple scenario there would be one conditional section for each different Marker icon. Here is a simple conditional section you can use as a template:
Since this code uses the WordPress function has_term in a conditional clause, you must register has_term in Toolset > Settings > Front-end Content, in Functions inside conditional evaluations.