Custom fields in WordPress posts

Question: I plan a blog that will present posts and pages in different languages. I want to build only one WordPress blog for all. How to assign a language property to a post? Do I have to set and get a meta tag? Can I use custom fields in the admin menu? Answer: Yes. Visit wordpress pages for detailed description of custom fields at wordpress.org. Before jumping into codeing check out language plugins and pay attention to database character set. You likely have to move from UTF-8 to ISO-8859-1 (Latin/West Europe), or ISO-8859-2 (Latin/East European) … ISO-8859-8 (Latin/Hebrew) etc. Custom fields can be used to add properties to your pages and posts. Set the key to “lang” and the value to a number (0=English, 1=German…) or name (EN, GE..) that you can easily handle in your theme’s index.php, page.php or archives.php code. Call the get_post_meta() function:
    $lang = get_post_meta($post->ID , "lang", true);
    if( isset($lang) && !empty($lang) && strcasecmp($lang, "EN") == 0 ){
         // This is a post in English .... show post here
    }
Place your code within the “Loop”:
    <?php if (have_posts()) : ?>
        <!--- LOOP -->
        <?php while (have_posts()) : the_post(); ?>

            <!--- PLACE YOUR CODE HERE, use $post->ID to identify post
            See above: $lang = get_post_meta($post->ID , "lang", true); .... -->

            <!---  Show post -->
            <div class="post" id="post-<?php the_ID(); ?>">
                <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
                <!--
                <p class="byline"><small><?php the_time('F jS, Y') ?> by <?php the_author() ?> <?php edit_post_link('Edit', ' | ', ''); ?></small></p>
                -->
                <div class="entry">
                    <!-- <?php
                    // the_excerpt();
                    ?> -->
                    <?php the_content(__('Read more'));?>
                    <div style="clear:both;"></div>
                </div>
            </div>
        <?php endwhile; ?>

    <?php else : ?>

        <h2 class="center">Not Found</h2>
        <p class="center">Sorry, but you are looking for something that isn't here.</p>
        <?php include (TEMPLATEPATH . "/searchform.php"); ?>

    <?php endif; ?>