How do I display the Category Title? I need to be able to display the Category Title of a single category (as a h1 tag for a page displaying a list of the entries for that category).  I can successfully display the relevant entries for the category on the page, but when I have tried to display the category title it displays all of the categories titles (in a loop), not just the single category title.

My code:

{% if craft.request.getParam('category') is not null %}    

        {% set category = craft.categories.slug(craft.request.getParam('category')) %}

        {% set products =  craft.entries.section('products').relatedTo(category).find() %}


        {% else %}
               {% set products = craft.entries.section('products').find() %}
        {% endif %}



&lt;div class="top-title"&gt; 

     {% for category in craft.categories.group('productType').find() %}       
        &lt;header class="flush"&gt;&lt;h1&gt;{{ category.title }}&lt;/h1&gt;&lt;/header&gt; 
     {% endfor %}


Any help would be very much appreciated!
Many thanks!
It depends how you're fetching the category. But if you've defined the template when setting up the categories it would be called be within a var called 'category', which would be a category object. You should then be able to access it using:

{{ category.title }}


If, on the other hand, you were getting the category via a slug in the URL, you would do something like:

{% set category = craft.categories.group('productType').slug(craft.request.lastSegment).first %}
{{ category.title }}


UPDATE: Following on from your updated question, you've already got the category as an object so there is no need to get it again. Try replacing:

// THIS IS YOUR LOOP, BTW
{% for category in craft.categories.group('productType').find() %}       
    &lt;header class="flush"&gt;&lt;h1&gt;{{ category.title }}&lt;/h1&gt;&lt;/header&gt; 
{% endfor %}


with:

{{ category.title }}


But you might need to add a conditional in case the page is loaded without a category. Something like:

{% if category | length %}
    {{ category.title }}
{% endif %}