The query is not set up to sort by the time of the event as well. To do that, you would likely add an additional array to meta_query which would look something like this:

 array(
   'key' => 'mbs_thetime',
   'value' => time(),
   'compare' => '>=',
   ),

This is untested, but it should point you in the right direction. You would also have to convert the field 'mbs_thetime' to a unix time stamp in similar fashion to the way we converted the date picker field.

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.