Determine if single or list event in template?
-
So I have copied the template files from events manager to my theme/plugins folder in order to have better control over what is displayed on my events page.
Because of the way events are handled with this plugin, the yoast seo breadcrumb function doesn’t work with the events page. It just shows Home >> Events even if on a single event. Makes sense.
So I’m making a custom function to use the yoast bread crumbs if not on the Events page. If it is on the page then I’m going to render the breadcrumbs manually. I need to know if there is something related to $EM_Event (object?) that can tell my wp template if I’m viewing the events list or single even.
- The topic ‘Determine if single or list event in template?’ is closed to new replies.