So I’m very excited that I submitted my first patch to the WordPress core this morning. Here’s hoping it’s accepted !!!!
This plugin helped.
Within a week of WordPress 3.1 being released there are already half a dozen plugins available to remove the fancy schmancy admin bar. I like this one the best. The key is that it lets you disable the admin bar based on roles AND capabilities. Very handy if you’re running a network site or a site with lots of user roles.
So I just implemented for the first time the new WordPress ‘meta_query’ structure that was added to WordPress 3.1. I must say, it works swimmingly. Here’s my query:
-> To look up events that start after the current date and then order those events ascending by starting date:
$tday = date('Y-m-d H:i:s'); $args = array( 'post_type' => 'events', 'showposts' => 1, 'meta_query'=> array( array( 'key'=>'simplr_starts', 'value'=> $tday, 'compare' => '>' ) ), 'meta_key'=>'simplr_starts', 'orderby'=>'meta_value', 'order'=>'ASC' ); $events = new WP_query($args); // run the rest of the loop as usual.
Check out Scribu for more info.