WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Adding Event List on Homepage ? (7 posts)

  1. welshhuw
    Member
    Posted 3 years ago #

    Hi,

    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

  2. agelonwl
    Member
    Posted 3 years ago #

    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).....

  3. agelonwl
    Member
    Posted 3 years ago #

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

  4. agelonwl
    Member
    Posted 3 years ago #

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

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    also, is events manager activated?

  6. welshhuw
    Member
    Posted 3 years ago #

    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?!

  7. welshhuw
    Member
    Posted 3 years ago #

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

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic