• Hi there,

    I wondered if anyone can help?

    I use the following to filter my page titles based on what page you are on, but I am unsure whether I can filter for a category.

    When on category 39 (history) I want it to say Ely Online | History but can it be done in my code?

    <title><?php if (is_home()){bloginfo(‘name’); } else { if ( is_single() || is_page()) {single_post_title(‘Ely Online | ‘); } else { ?> Ely Online Archives <?php wp_title();} }?></title>

    See it here in pastebin: http://pastebin.com/547109

    Thanks

The topic ‘Page titles PHP help please’ is closed to new replies.