• Resolved Buri Studios

    (@buri-studios)


    So all of my pages now look like this, “<?php $replacethese = array(‘[‘,’]’); $replacewith = array(‘ ‘,’ ‘); echo str_replace($replacethese, $replacewith, get_bloginfo(‘title’)); ?> <?php if ( !(is_404()) && (is_single()) or (is_page()) or (is_archive()) ) { ?> » <?php wp_title(”);” at the top ‘tab’ part of my browser. Any idae’s on what I did wrong ‘this’ time? Thanks!

    Buri Studios

Viewing 9 replies - 1 through 9 (of 9 total)
  • At the very least remember the or operator in PHP is ||.

    http://www.w3schools.com/PHP/php_operators.asp

    Thread Starter Buri Studios

    (@buri-studios)

    Thank you but I do not understand how this would enable me to solve my problem?

    Well since you didn’t describe what your problem really is, this code doesn’t look right:

    if ( !(is_404()) && (is_single()) or (is_page()) or

    I think what MichaelH is saying is that:

    <?php if ( !(is_404()) && (is_single()) or (is_page()) or (is_archive())

    should be:

    <?php if ( !(is_404()) && (is_single()) || (is_page()) || (is_archive())

    Oops, are you are saying it’s displaying the code instead of posts?

    Link to see problem, please.

    Maybe this?

    <?php $replacethese = array('[',']'); $replacewith = array(' ',' '); echo str_replace($replacethese, $replacewith, get_bloginfo('title')); ?> <?php if ( !(is_404()) && (is_single()) || (is_page()) || (is_archive()) ) { ?> » <?php wp_title(''); } ?>

    Thread Starter Buri Studios

    (@buri-studios)

    Sorry, visit this page for instance, “http://www.buristudios.com/?p=38&#8221; with multiple tabs open. Or favorite it and see what it puts in the title. Where in the code would I go to fix this? Sorry I know I am new if you need more information just ask and I’ll post what you’d like. As I don’t know coding very well I don’t know where to begin looking and so cannot isolate the probable errors I’ve made in editing .php header files and that sort of thing. I’m assuming it’s something I did considering the fact that it was working before I went in to fix a different problem and then this one popped up.

    Thank you so much for your time and help. If you believe it’s neccasary I’ll reinstall everything but it did take so much work to get it to where it currently is!

    Buri Studios

    Pop it in the header.php file, between the <title></title> tags.

    Thread Starter Buri Studios

    (@buri-studios)

    Thank you very much Alism and Michael! That last one did the trick. Thank you so, so much!

    Buri Studios

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Odd Title?’ is closed to new replies.