WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

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.