Support » Plugin: Events Manager » Don't show query if there are no results

  • I have a sidebar where I show some events with a specific tag:

    <?php if (class_exists('EM_Events')) {
    	echo EM_Events::output( array('scope'=>'future', 'tag'=>'win', 'limit'=>3,'orderby'=>'date', 'format'=>'...long code...') );
    } ?>

    Now it shows “NO EVENTS” when there are none. Is it possible to hide it when there are no events? Like “have_posts” does…

    http://wordpress.org/extend/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Don't show query if there are no results’ is closed to new replies.