Today I realized my posts needed proper jargon in the description and keywords meta tags for
uber SEO magic. What is the ‘right’ way to do this in WordPress? I found a bunch of plugins and
other complicated methods, but I thought there should be an easy way with custom fields. I ended
up on a forum post, which was exactly what I was
looking for. You just create a couple custom fields: description and keywords, then print out
the values of the fields in the header. So I dumped this into my theme’s header.php:
It works on the single post page, but it does not properly display the default on aggregation
pages like the front page. This is fixed by adding the is_single() function to the if
statements: