Show Tag/Category in Title Tag

  • Hi,

    I have a generic 'Archive' page with the below title, however this is being marked down for SEO as many of the 'pages' have the same title. Is it possible to dynamically insert the category or tag returned.

    This is how it is : <title>Archive | <?php echo $companyName ;?></title>

    Ideally I'd like this if possible: <title>Archive of (Tag/Category) | <?php echo $companyName ;?></title>

    I output the returned queries using the below, if it in anyway helps.

    Thanks in advance.

  • I don't know how you are generating $companyName but something like this...

    Have included meta descriptions but you may have another method for this.