Skip to Content
WordPress® All-in-One For Dummies®
book

WordPress® All-in-One For Dummies®

by Lisa Sabin-Wilson, Cory Miller, Kevin Palmer, Andrea Rennick, Michael Torbert
April 2011
Beginner to intermediate content levelBeginner to intermediate
908 pages
22h 37m
English
For Dummies
Content preview from WordPress® All-in-One For Dummies®

Exploring Different Uses for Custom Fields

In this chapter, we use the example of adding your current mood to your blog posts by using Custom Fields. But you can use Custom Fields to define all sorts of different data on your posts and pages; you're limited only by your imagination when it comes to what kind of data you want to include.

Obviously, we can't cover every possible use for Custom Fields, but we can give you some ideas that you may want to try out on your own site — at the very least, you can implement some of these ideas just to get yourself into the flow of using Custom Fields, and hopefully they can spark your imagination on what types of data you want to include on your site:

  • Music: Display the music you're currently listening to. Use the same method we describe in this chapter for your current mood, except create a Custom Field named Music: Use the same code template, just define the key as: $key=“music”; and alter the wording from My Current Mood is: to I am Currently Listening to:.
  • Books: Same as the mood or music Custom Field, you can display what you're currently reading by creating a Custom Field named Book and define the key in the code as $key=“book”;, and then alter the wording from My Current Mood is: to I Am Currently Reading:.
  • Weather: Let your readers know what the weather is like in your little corner of the world by adding your current weather conditions to your published blog posts. By using the same method that we describe in this chapter, create ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

WordPress® 24-Hour Trainer

WordPress® 24-Hour Trainer

George Plumley
Gaming Hacks

Gaming Hacks

Simon Carless

Publisher Resources

ISBN: 9780470877012Purchase book