Hi,
You should be able to do something like:
$EM_Locations->output('#_LOCATIONNEXTEVENTS');
Thread Starter
aprop
(@aprop)
Do you mean this?:
<?php $EM_Locations->output('#_LOCATIONNEXTEVENTS'); ?>
it doesn’t work, it gives me this error:
Fatal error: Call to a member function output() on a non-object in /home/content/00/11142400/html/wp-content/themes/[...].php on line 1
Warning: Cannot modify header information - headers already sent by (output started at /home/content/00/11142400/html/wp-includes/functions.php:2784) in /home/content/00/11142400/html/wp-content/plugins/sabai/lib/SabaiFramework/Application/HttpResponse.php on line 121
Warning: Cannot modify header information - headers already sent by (output started at /home/content/00/11142400/html/wp-includes/functions.php:2784) in /home/content/00/11142400/html/wp-content/plugins/sabai/lib/SabaiFramework/Application/HttpResponse.php on line 106
{"messages":["The server encountered an error processing your request.","Fatal error: Call to a member function output() on a non-object in \/home\/content\/00\/11142400\/html\/wp-content\/themes[...].php on line 1."],"url":"http:\/\/devalldoreix.com\/guia\/list"}
Somewhere I might specify the location id i wanna show events from…
I meant
<?php echo $EM_Locations->output('#_LOCATIONNEXTEVENTS'); ?>
but given the error you got, the extra echo won’t make any difference.
Can you post the code you have surrounding this? Might help to see where things are going wrong.
Thread Starter
aprop
(@aprop)
Using <?php echo $EM_Locations->output('#_LOCATIONNEXTEVENTS'); ?>
I get same error.
You can see it in:
http://devalldoreix.com/guia/list/el-casalet
You must click on “actes” tab to see the error.
I have been looking
http://wp-events-plugin.com/documentation/event-search-attributes/
http://wp-events-plugin.com/documentation/advanced-usage/
And I think ther’s the answer, but, I’m not a php programer…
Thread Starter
aprop
(@aprop)
Angelo, I’ve tryed, but as i said, I’m not a php expert,. but will keep on trying
Thread Starter
aprop
(@aprop)
Using:
<?php if (class_exists('EM_Events')) {
echo EM_Events::output( array('limit'=>10,'orderby'=>'name','location'=>'10') );
}
?>
I get a detailed events list, but not the #_LOCATIONNEXTEVENTS as I get them in the location template created on events.
What i get is a full detalled events list, and i would like to get the “format for listof events” as you can see here: http://devalldoreix.com/espai/placa-casal-de-cultura/
Thread Starter
aprop
(@aprop)
Hey!
I’m proud of myself and also of you.
I’ve done it!!
This is the code:
<?php if (class_exists('EM_Events')) {
echo EM_Events::output( array('limit'=>10,'orderby'=>'name','location'=>'10','format'=>'#_LOCATIONNEXTEVENTS') );
}
?>