Include multiple blogs in EM::events get()
-
hi!
I am trying to get a list of events from blog_id’s 2 and 3. I have the following code:
<?php $blogs = "2,3"; $events= EM_Events::get('limit=3&blog='. $blogs); //print_r($menu_posts); if(!empty($events)){ outputEventsList($events); } ?>
However, I only get returned blog 2. (Each blog has one event in it)
Also, I cant seem to get the “array” argument to work. I want it to return the object as an array so that I can do event->event_name; I have tried:
$events= EM_Events::get('limit=3&array=true&blog='. $blogs); $events= EM_Events::get('limit=3&array=1blog='. $blogs);
But I had no luck.
Michael
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Include multiple blogs in EM::events get()’ is closed to new replies.