Trying to Exclude Sticky Posts From date_query

When you set up your query, do it this way ( I believe you were missing the ‘date_query’ key ): $args = array( ‘date_query’ => array( array( ‘year’ => 2012, ‘month’ => 12, ‘day’ => 12, ), ), ‘ignore_sticky_posts’ => true, ‘post__not_in’ => get_option(‘sticky_posts’) … ); $query = new WP_Query( $args ); http://codex.wordpress.org/Class_Reference/WP_Query#Date_Parameters

Sticky post of current viewing author?

I find what was missing ($wp_query->queried_object_id;), here is answer: $current_browsing_author = $wp_query->queried_object_id; // Get current browsing author $sticky = get_option( ‘sticky_posts’ ); rsort( $sticky ); $sticky = array_slice( $sticky, 0, 5000 ); query_posts( array( ‘post__in’ => $sticky, ‘author’ => $author, ‘orderby’ => ‘rand’, ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => 5, ‘caller_get_posts’=> 5 ) … Read more