Hot answers tagged


The order doesn't matter. That query will get 7 posts from the "events" category, skipping over the 5 most recent (since the default order is by date).


offset is one of the arguments that you can pass to WP_Query, so it belongs in the $args array: $args = array( 'post_type' => 'post', 'category_name' => 'category', 'orderby' => 'date', 'order' => 'DESC', 'showposts' => 4, 'offset' => 4, ); PS: $wp_query is a reserved variable used by ...


So I'm guessing this is a follow-up to this question. And based on my answer there, you can use/add the offset parameter like so: In category.php, just set the preferred offset: $the_query = new WP_Query( array( 'category__in' => array( $cat_id ), 'post_type' => 'post', 'posts_per_page' => 5, 'paged' => $...

Only top voted, non community-wiki answers of a minimum length are eligible