Home Forums Event Espresso Premium Improvement suggestions to templates/tags

Improvement suggestions to templates/tags

Posted: September 24, 2014 at 7:16 am


September 24, 2014 at 7:16 am


I’m using Event Espresso for a very complicated site and thus I’m pretty much building the entire frontend by myself using your templates in /public as a guide.

There are a few things which does not make any sense to me and really messes with the ability to do these kinds of projects using EE which I’d like to share with you. I hope you’ll consider the fixes I suggest 🙂

1. functions like espresso_event_date and espresso_event_end_date shouldn’t echo the results. Right now there’s no easy way for me to access the dates of an event to manipulate to my will! Say I want to do a custom if-statement where I check the events main date with the current date. I suggest you either add a parameter to the function with true/false for echo/return OR create a similar function which only returns results: get_espresso_event_end_date. This should honestly be done for ANY function that’s currently echoing stuff 🙂

2. espresso_event_date_obj – The returned object for this had me by the balls.. I have no idea how to interact with it and it seems everything is either protected or private. Why not just return the values that one would use or atleast make them accessible without deep knowledge of your object setup.

3. espresso_venue_gmap – After looking through your Code documentation I saw that this function actually takes in a few parameter, the $gmap array being one. And it seems one should be able to use this to set custom parameters such as height, width and zoom. But it doesn’t work.. Possibly because it’s the third parameter and I never seemed to be able to get the first two to work. Perhaps you should make sure its possible to set custom values in $gmap and place it as first parameter so ppl like me can easily spit out custom maps.. Such a small change for you that would mean so much for developers lite me 🙂

4. I understand you are somewhat in the starting pit of EE 4 but a bit more detailed information about each function here would be very nice. And perhaps you should change “returns … blabla” to “Outputs … blabla” where there’s an echo involved 😉

Any thoughts on this?
Best regards,


September 24, 2014 at 7:25 am

I just found this little pearl: EE_Event_List_Query
Why isn’t it listed in that page?! If I have knowledge of how to utilize that query function I could create the heavens 😀 Would need to know more than just the name tho..


  • Support Staff

September 24, 2014 at 9:17 am

Hi Jonathan,

The reason that EE_Event_List_Query() isn’t included on the page in question is because EE_Event_List_Query() is not a template tag. The page in our documentation lists out template tags only.

Please sign up for Github access and create issues or (even more helpful) pull requests for your improvement suggestions. The dev team will be sure to follow up with you there:


  • Support Staff

September 24, 2014 at 9:21 am

Along with that, here’s an example of how to use the EE_Event_List_Query() class in a standard WordPress page template loop:

The espresso_get_events() template tag (which you can find in the template_tags.php file) shows another example of its usage within a template tag.

The support post ‘Improvement suggestions to templates/tags’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 5 years, 4 months ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!