• Resolved rudym

    (@rudym)


    Hi all,

    I posted this in the localhost forum, but I think it’s relevant here. I have loaded all the WP data from a live site to a localhost machine. All seems to be working ok, but I noticed that in the title, it displays some php code:

    <? wp_title('?',true,right) . " " ...

    As you can probably see, the format should be <?php … ?>, right? This is showing in all pages. How can I resolve this? Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • MartinCDS

    (@martincds)

    First install the Show Current Template plugin – it will show which theme files make up your page in the the admin bar on the front end of your site. Go through those files and find the code that is displaying. You can use Agent Ransack as well if you want to search for the code. It should have nothing to do with the data you imported though, there is incorrect code in your theme folder – probably in content.php. Change <? to <?php and make sure it is closed and the syntax inside is correct. If this is there though chances are good that there are other holes in the theme as well. The person who developed the theme used PHP that is not compatible with WordPress and changed the server to accomidate his coding.

    Thread Starter rudym

    (@rudym)

    Thanks @martincds, I will look into that. It’s odd that it’s not an issue with the production site, just the localhost backup.

    MartinCDS

    (@martincds)

    On the production sit you can set the server to use <? as php tags – by default it has to have <?php

    Thread Starter rudym

    (@rudym)

    Ok, is this something I can set in the localhost server? I’m using XAMPP.

    Thread Starter rudym

    (@rudym)

    short_open_tag = On|Off in php.ini. I’ll check this out. Thanks, @martincds!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Title not displaying properly’ is closed to new replies.