Query Posts by date range with fixed beginning and end

You should probably add the filter, then use a new query, then remove the filter. function filter_where( $where ) { $where .= ” AND post_date >= ‘2012-03-01’ AND post_date <= ‘2014-03-01′”; return $where; } add_filter( ‘posts_where’, ‘filter_where’ ); $query = new WP_Query( array( ‘post_type’ => ‘shop_order’ ) ); while( $query->have_posts() ) : $query->the_post(); the_title(); the_content(); … Read more

Regenerating array key for wp_schedule_event args

So what I came up with, which seems to work is the following: This function will search by the user id and find the corresponding cron job function search_user_cron( $hook, $user_id ) { $crons = _get_cron_array(); foreach( $crons as $timestamp => $cron ) if( isset( $cron[$hook] ) ) foreach( $cron as $jobs ) foreach( $jobs … Read more

Remove Twenty Twelve themes responsiveness in Internet Explorer

Create a child theme of TwentyTwelve. Copy the header.php to your child theme directory. Modify it to add conditional comments to load an “Internet Exlorer” only version of you stylesheet. Use TwentyTwelve’s style.css as a starting point to create your IE only CSS file, or just override the responsive bits that you don’t like.