I want to show information about some categories on my site, which would include among other things:
- A link to the first post in the category
- A link to the last post in the category
- The number of posts in the category
My plan so far was to use this in a WP_Query
$args= array( 'cat'=>$comic, 'orderby'=>'post_date', 'order'=>'DESC', 'post_type'=>'post', 'posts_per_page'=>'-1');
And from there extract the information. But I'm not sure how to get to the first and last result without going through the whole loop, how to get the result count, or if using a WP_Query for this will slow the site down if the category grows too big.