Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've used this code to stipulate different separators for different pages in my clients site:

<title>
<?php if(is_page('Portfolio')){
    wp_title( 'of', true, 'right' );
    echo wp_specialchars( get_bloginfo('name'), 1 );
}else{
    wp_title( 'by', true, 'right' );
    echo wp_specialchars( get_bloginfo('name'), 1 );
}
    ?>
</title>

What it's outputting regardless of where I am on the site is :

Page Name | Blog Name

Which i find really odd, how is it going through the if statement and coming up with it's own answer?

share|improve this question

closed as too localized by toscho Jul 2 '12 at 22:27

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

OK, All-in-one-SEO pack was interfering with my decalration. Solved.

share|improve this answer
Mark it as answered. – toscho Apr 21 '11 at 5:11
have to wait two days to do so :-/ – RGBK Apr 21 '11 at 11:34
...and now it's been 385 days or so. :) – Chip Bennett May 10 '12 at 2:19
Still waiting.... – Brian Fegter Aug 28 '12 at 2:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.