I just installed EME, but I needed to return the value of the dbem_get_events_list tag, not display it. In the documentation it says to use “display=false” however this did not work. I looked into the code and the code uses “echo” so I tried playing with the template tag using “echo=false” however this did not work either. Looking at the dbem_events.php file I found that the if statement at the end of the dbem_get_events_list function was not working, I was able to replace it with:
if ($echo)
{echo $output;}
else
{return $output;}
and now it seems to work. If you use echo=1, it will display – this is the default, if you use echo=0 it will return the values.