I'm utilizing a personalized theme and there's a type of code such as this in for instance single.php.

     <p class="postmetadata"><?php _e('Posted by','Mimbo'); ?> <?php the_author_meta('namefl'); ?> <?php _e('on','Mimbo'); ?> <?php the_time('n/d/y'); ?> &bull; <?php _e('Categorized as','Mimbo'); ?> <?php the_category(',') ?></p>

The phone call to wordpress function the_author_meta('namefl') does not return anything, thus the writer title is blank display something similar to was published by on 11/12/11 for instance.

All I must do would be to display the writer title inside. I'm using Wordpress 3.2.1. What's the easiest method to fix this?

You're missing a parameter for that_author_meta($area, $userID). It appears as if you have $userId, but you're missing the very first parameter.

The very first paramter, $area, ought to be among the following, depending which area you would like exactly:

  • user_login
  • user_pass
  • user_nicename
  • user_email
  • user_url
  • user_registered
  • user_activation_key
  • user_status
  • display_title
  • nickname
  • first_title
  • last_title
  • description
  • jabber
  • goal
  • yim
  • user_level
  • user_firstname
  • user_lastname
  • user_description
  • wealthy_editing
  • comment_cutting corners
  • admin_color
  • plug ins_per_page
  • plug ins_last_view
  • ID

What exactly you might want rather might be

<p class="postmetadata">
    <?php _e('Posted by','Mimbo'); ?> <?php the_author_meta('display_name', 'namefl'); ?> <?php _e('on','Mimbo'); ?> <?php the_time('n/d/y'); ?> " <?php _e('Categorized as','Mimbo'); ?> <?php the_category(',') ?>
</p>

or maybe you are searching for the present post's author within "The Loop"

<p class="postmetadata">
    <?php _e('Posted by','Mimbo'); ?> <?php the_author_meta('display_name'); ?> <?php _e('on','Mimbo'); ?> <?php the_time('n/d/y'); ?> " <?php _e('Categorized as','Mimbo'); ?> <?php the_category(',') ?>
</p>

To learn more, please consider the Wordpress Codex.

You need to acquaint yourself using the Wordpress codex in addition to http://wordpress.stackexchange.com. That website is much better at responding to codex questions. Same with for programming questions.

Look at this:

http://codex.wordpress.org/

Make use of this to resolve your condition (needs to be utilized within the loop)

http://codex.wordpress.org/Function_Reference/the_author

<?php the_author(); ?>