Hot answers tagged categories
First you will need the slug of the current category: $cat = get_query_var('cat'); $currentcat = get_category ($cat); Then you can use the same loop. Just add the following to $query_args to limit the outcome to the current category: 'category_name' => $currentcat->slug,
Pieter's answer does work, but it displays all sticky posts even on pages when we want to display filtered posts (to a given category for instance). The following works for me. Adding this to functions.php only displays stickies within the subset of filtered posts : add_filter('the_posts', 'bump_sticky_posts_to_top'); function ...
Only top voted, non community-wiki answers of a minimum length are eligible