Posts Tagged ‘blog’

WordPress custom fields

Sunday, May 2nd, 2010

Smashing Magazine has a good post on WordPress custom fields. WordPress is becoming so powerful as a mini-CMS these days. Custom fields allow you to enter whatever data you want for each post. They give many examples of how this can be used. I prefer to code the php myself, but for a novice PHP or even web user these fields extend functionality ten-fold.

wordpress custom fields

Basically, I used these to implement custom meta keywords on this blog. I put keywords in the custom field, then I simply echoed that into the header with the meta information. You could get even simpler with it and actually put the entire meta tag as html in the custom field, but I wanted some keywords to remain the same and be site-wide. This way I won’t have to copy/paste them into every post I make.