title: wordpress custom query the events calendar
body: <p>I have 2 events in the 'u5' events category. Result shows as follow:</p>
  
  <p>U5 vs Eagan<br/>
  no events</p>
  
  <p>How can i only show the event without the "no events" output? </p>
  
  <pre><code>date_default_timezone_set( 'America/Chicago' );
  $today = date('j M Y');
  $tomorrow = date('j M Y', strtotime('+1 days'));
  $third = date('j M Y', strtotime('+2 days'));
  $fourth = date('j M Y', strtotime('+3 days'));
  $end_date = date('j M Y', strtotime('+4 days'));
  
  global $post;
  $upcoming = tribe_get_events(array('start_date'=&gt;$today,'end_date'=&gt;$end_date,'tribe_events_cat'=&gt;'u5'));
  
  if (count($upcoming) == 0) {
      echo '&lt;li&gt;No Events&lt;/li&gt;';
  } else {
      foreach($upcoming as $post) {
          setup_postdata($post);
          $start = tribe_get_start_date(null, false, 'j M Y');
  
          if($start == $tomorrow) {
              echo the_title();
          } else {
              echo 'no events';
          }
      }
  }
  </code></pre>