Hannes Johnson pointed out that my front page wasn’t displaying a title. How could this happen? How could someone who knows SEO leave a blank page title?
Quite simply, it was an accident. But not an accident like a meteor falling through your roof, rather an accident that could have been avoided. You see when I made a modification to Wordpress to get the titles I wanted rather than the default ones that were displaying I made the cardinal sin of coding. I went into the source to modify how the wp_title function worked rather than finding out how it worked and altering my template appropriately.
That means that once I updated Wordpress my changes were lost. Had I made the changes to the template (as I have this time around), my changes would have persisted through the upgrade. All I had to do was add a conditional statement to determine whether I was on the front page or not and then Googled the wp_title() function and got the Wordpress Wiki entry on that function. Having taken the two minutes it took to figure out how the function worked, I now have titles displaying the way I want them to and my changes are all in the template so they will persist through upgrades.
Take note, do it right, do it once. Do it wrong and you’ll keep doing it until you do it right.
life lessons, Wordpress
