In footer.php, I have the following code:
<?php
$copyYear = 2011;
$curYear = date('Y');
echo "© " . $copyYear . (($copyYear != $curYear) ? '-' . $curYear : '') . " " . bloginfo('name');
?>
On the front page of the website, the following is output:
Sugar Gum Cakes© 2011-2014
Note the Blog name is at the start, while in the PHP code it is at the end.
Why is this happening? I can’t see how it would be CSS.
Thanks.
bloginfo
echoes its value on its own, useget_bloginfo
within an echo, which returns its value.