bodaniel
Forum Replies Created
-
Hi,
After upgrade to em 5 with permalinks set like “https://www.myurl.com/events/2012-01-26/” the request variable seems no longer be set? Do I have to get the date from the permalink URL or can I take it from some global parameter?
Thanks in advance!Hi,
Thanks there was a conflict with another calendar plugin I had.Now I figured out this:
It works fine if I have multiple events the same day, and click on the particular event, then I can see the timestamp.
But if I have only a single event on a day then I don’t see the timestamp. But if I set this “Show list on day with single event?” in admin, then I have to click the particular event and than it works.Is there any way I can get “$EM_Event->start” for single events on a day without having to set “Show list on day with single event?” to yes in admin?
My fault… It works fine now. ??
It didn’t work on the particular event I was testing with, acctually I don’t know why. But anyway I created another testevent and now it works fine! Thanks for your help!/ Daniel
Have tried that also, still no timestamp ??
function my_em_custom_content($content){ global $EM_Event; $content .= $EM_Event->start . " hello world"; return $content; } add_filter('em_content','my_em_custom_content');
Ok, I have tried that but I can’t get it work ??
I have tested with this function but don’t get any timestamp printed, only “hello world”:function my_em_custom_content($content){ $content .= $EM_Event->start . " hello world"; return $content; } add_filter('em_content','my_em_custom_content');
Thanks for the reply Marcus.
This assumes that I know the date. But in my case the startdate will differ depending on what event the user is currently looking in to.
So I need some way to get the startdate for the event instance currently beeing shown. Can I set global $EM_Event and get the startdate in some way?
Hope you understand my issue.Thanks!
/ Daniel