Different Category and Page Titles

Discussion in 'WordPress' started by trickz, Jun 23, 2009.

  1. #1
    Hi,

    I would like to make the category and page titles of my wordpress blog different. So for example if you click the "investing" category the resulting page would have the title "how to invest" rather than "investing". Does anyone know how to do this? I have tried using the all-in-one seo plugin but that only seems to work for pages with one post. I'm referring to a page with multiple posts.

    Let me know if you don't understand my question :cool:
     
    trickz, Jun 23, 2009 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Yeah, you could use the category description instead.

    Open archive.php and look for something like this near the top:
    <?php /* If this is a category archive */ if (is_category()) { ?>
    		<h2 class="pagetitle">Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h2>
    Code (markup):
    Replace <?php single_cat_title(); ?> with <?php echo category_description(); ?>
     
    Cash Nebula, Jun 25, 2009 IP