Support » Plugin: Events Manager » Adding Event List on Homepage ?

  • Resolved welshhuw



    I have tried adding this snippet to a custom template page but nothing is showing – Am I doing something wrong here?

    <?php if (class_exists('EM_Events')) {
    	echo EM_Events::output( array('limit'=>10,'orderby'=>'name') );

    Thanks in advance

Viewing 6 replies - 1 through 6 (of 6 total)
  • this one works for me!

    if (class_exists('EM_Events')){
     echo EM_Events::output( array('limit'=>10,'orderby'=>'name') );

    inserted it at default theme( Twenty Ten:sidebar.php)…..

    are you working on a page template OR a wordpress theme?

    tried it also at page template and it also works. Have you choose correctly your custom page template in you wp page?

    Plugin Author Marcus


    NetWebLogic Support

    also, is events manager activated?

    Yes the plugin is active.
    I created a custom page template, set the page to that template, page displays fine.
    Then I copied’n’pasted the above snippet – refreshed the page and got nothing.
    There is nothing happening under View Source or Firebug either?!

    I have just upgraded the plugin and now the snippet is working?!


Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Adding Event List on Homepage ?’ is closed to new replies.