I want to make the following query_posts to use the current page's category name. For example, the user is located at: examplesite.com/category/apples/, and i want to use "apples" and for a different category (say "pears"), then dynamically add "pears to the following query_posts function:
<?php query_posts('category_name=apples'); ?>
Also, can this be amended to display only posts from a custom post type called, say "fruits"? How would this look like?