DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

Did you used to be a Live Journal member some years ago? I remember that when you wre writting a post, you were asked for your mood, which will later be displayed on your blog. Here is how to recreate the same functionnality under WordPress.

Open your single.php file (You can also modify your index.php file) and paste the following code anywhere within the loop:

$customField = get_post_custom_values("mood");
if (isset($customField[0])) {
echo "Mood: ".$customField[0];

Save the file. Now when you’ll write a new post, just create a custom field named mood and type your current mood as a value.

Leave a Comment

Your email address will not be published. Required fields are marked *