An Introduction To The WordPress Custom Fields

Posted: Jan 09, 2010 |Comments: 0 |

WordPress Custom Fields are extra information that you can add to the posts and pages. You can start off by visiting the WordPress’ Using Custom Fields. This is a basic tutorial and will provide a fair idea of the subject. You will find some valuable information. But these tutorials are not detailed and do not guide you through the many uses of WordPress Custom Fields. This is one reason why people still find it difficult to use the custom fields. Though, the reality is that you can do a lot of things with WordPress Custom Fields and imagination is the key to the custom fields.  

Your first question will be where to put information on the custom fields. Either on the “Write Page” or the “Write Post” in the Dashboard section of the WordPress, you will find a section at the bottom that will permit you to input a lot of custom fields. “Key” and “Value” are the two different things that you can input in the custom field. This makes your work simple indeed.

But you would be wondering, what is “Key” and “Value”. The Key refers to the name of the custom field and Value refers to the value you want to give to that name. For instance, if you are writing a movie review, you might want to add a couple of more information like the director of the movie, actors in the movie, and producer of the movie etc. you might also give a link with the help of other website and create a star rating system or other things.


Now what should you do with all this information? You can put the information on the pages, sidebars or wherever you like. If you want to show a list of movie reviews, and in alphabetical order, with the director’s name, you can make custom field that has the “Key” as “director” and “Value” as “the name of the director” for all the reviews. After doing this put this into the category of “movie reviews”. Following is the way you can create the list of each movie review. In your category ID, change the name of category=27 to “Movie Reviews” category ID.   

<ul>
<?php
$movie_reviews = get_posts('category=27&numberposts=-1&orderby=post_name&order=ASC');
foreach($movie_reviews as $post) : setup_postdata($post);
?>
<li>
<a rel="nofollow" onclick="javascript:_gaq.push(['_trackPageview', '/outgoing/article_exit_link/1691906']);" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
<?php $director = get_post_meta($post->ID, "director", $single = true);
if($director !== '') {
echo 'by ' . $director;
} ?>
</li>
<?php endforeach; ?>
</ul>

This is a very basic way of using the WordPress custom fields, but this is a real good insight for the beginners, and it will provide them with the idea of what more they can do with custom fields. Now, log in to WordPress and see and see if this tutorial has been of a help to you! You can do a whole lot of things with the custom fields, but you will have to explore it on your own, and see what works for you!

This article was brought to you by www.wordpresstipsgalore.com.

Questions and Answers

Ask
200 Characters left
Rate this Article
  • 1
  • 2
  • 3
  • 4
  • 5
  • 0 vote(s)
    Feedback
    Print
    Re-Publish
    Source:  http://www.articlesbase.com/blogging-articles/an-introduction-to-the-wordpress-custom-fields-1691906.html

    Article Tags:

    custom fields

    ,

    wordpress custom fields

    ,

    wordpress custom

    ,

    custom field

    ,

    make custom field

    The Thesis for Wordpress is the ultimate tool for building blogs -- the the best way. You canmanage your site like a expert and at the top of the search engines an SEO expert. If are after more traffic, super simple customization with just a click, world-class usability, and a robust user community available to help you anytime you have questions, the Thesis WordPress Theme is the best theme if you want results.

    By: Carol Weathersl Internet> Bloggingl Jun 26, 2010

    You can use Wordpress to do a number of things like rating a website to blogging to creating a gallery of images or even a video site. Depending upon your own level of creativity and willingness to try out newer applications, the possibilities are endless.

    By: alex smithl Internet> Web Designl Oct 11, 2011

    Providing advance features and making the process of website development easier has been the motive of launching every new version of wordpress. After 3.0 wordpress version was launched in February, 2011, the latest version in the field of wordpress development is set to be on floor.

    By: Brainwork Indial Internet> Web Designl Jul 26, 2011

    Do you want to know about Fanpage Connect Pro Review? Do you expect to find out more regarding the reputation of Fanpageconnect.com? Or is Fanpage Connect Pro Scam or genuine product? There are shocking answers within this honest review!

    By: Justine Blake 01l Internet> Internet Marketingl Feb 09, 2012

    When using Wordpress themes you need to understand the basic functionality of certain in-built features of Wordpress like custom fields. So what are custom fields? They are a form of meta-data set which allow you to store arbitrary information related to each WordPress post.

    By: alex smithl Internet> Web Designl Nov 02, 2011
    David Radovanovic

    WordPress 3.1 "Reinhardt" includes smart enhancements for a hot new release of the world's most popular open source Web site application and framework. New features are listed in detail with clear descriptions and practical uses.

    By: David Radovanovicl Internet> Web Designl Feb 27, 2011
    ellumbra

    A fresh look at some of my reasons for suspicion - and a continuing battle against the organised group of bloggers.

    By: ellumbral Internet> Bloggingl May 26, 2012
    vi le thanh

    7 Steps Important to Make Best Strategy Blog to Development for Your Business Online

    By: vi le thanhl Internet> Bloggingl May 25, 2012
    Dario Montes de Oca

    Getting into social media marketing is a smart idea for any business owner. No matter whether your business is online or offline, this still remains true. With so many businesses reaping the benefits of social marketing, it's a shame to see so many others losing out. Just looking at it from this angle highlights the value of using a blog for your business. A blog can give any business an immediate benefit when it comes to social media.

    By: Dario Montes de Ocal Internet> Bloggingl May 25, 2012
    Dario Montes de Oca

    Getting into social media marketing is a smart idea for any business owner. No matter whether your business is online or offline, this still remains true. The web environment for business is focusing on social marketing so much that it becomes imperative. Just looking at it from this angle highlights the value of using a blog for your business. A blog can give any business an immediate benefit when it comes to social media.

    By: Dario Montes de Ocal Internet> Bloggingl May 25, 2012
    Dario Montes de Oca

    If you want to see real results from your online marketing efforts, a blog for any business is the perfect choice. Seriously, you can build the simplest blog and do well depending on your business. When you have your blog running, you can focus on some serious marketing for it. A blog will support just about any kind of content format, so a video blog will work very well indeed. This article will look at some simple strategies for building up a blog for your business.

    By: Dario Montes de Ocal Internet> Bloggingl May 25, 2012

    Suppose a person is in search of information on “weight loss Juices” and Googles for the same; he is going to get top results of the keywords that match his search criteria.

    By: Chuck Starrl Internet> SEOl Jan 09, 2010

    You have set up your Wordpress blog and you want to ensure that it is full proof from hackers. What you need is a security lock that cannot be broken or accessed into by any means.

    By: Chuck Starrl Internet> Bloggingl Jan 09, 2010

    Installing WordPress is easy and just a 5 minute job, though after the installation is over there are other things that you will have to do, if you want the most out of your blog.

    By: Chuck Starrl Computersl Jan 09, 2010

    When you are into writing blogs on a regular basis, the primary motive of your posts is to invite the comments from the readers to your link. Be it good or bad, this feedback highly counts and it really helps you chalk out your future posts.

    By: Chuck Starrl Internet> Bloggingl Jan 09, 2010

    Discuss this Article

    Author Box
    Articles Categories
    All Categories
    Quantcast