Monday, February 19, 2018

WordPress wp_title bloginfo on one webserver missing

Leave a Comment

Today I created for our website a staging environment to test new functionality.

Therefore I backed up the current homepage with UpdraftPlus and migrated this to the staging web server.

Everything is fine and the websites are almost identical.The only thing that is not equal, is the title.

I use this title statement <title><?php wp_title('-', true, 'right'); ?></title>.

On the origin website I get (how it should be):
On a sub page: Sitename - Blogname
On the home page: Blogname

The migrated:
On a subpage: Sitename -
On the home page: blank

Both systems are running on the same WordPress version 4.9.4 (latest) and PHP 7.0

Current research:
When I use <?php wp_title('-'); ?> I get - Sitename

I do know this question, but this is only a workaround.

0 Answers

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment