Support » Themes and Templates » Post author does not show unless “first_name” is true

  • Resolved kalico


    At the bottom of each post excerpt on the main page, there is a “Written by” line, which should be followed by the author’s name. It only shows the author’s name if the “first_name” field is filled in, not the nickname or username. So unless the user actually goes back into admin and fills in their profile, their name doesn’t show.

    I can’t find where this information is being generated. There should be some sort of template tag, but I can’t find a thing. I can’t find the plain text of “Written by” anywhere in the template files either. I have done a LOT of WP hacking, so this isn’t new to me, but I am completely stymied. I hope someone can take a look at this and offer some suggestions.

    Here is the code in the index.php:

    <div id="content">
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      <div class="entry <?php if(is_home() && $post==$posts[0]
     && !is_paged()) echo ' firstpost';?>">
        <h3 class="entrytitle" id="post-<?php the_ID(); ?>">
    <a href="<?php the_permalink() ?>" rel="bookmark">
          <?php the_title(); ?>
          </a> </h3>
    	  <div class="entrymeta">
            	<?php the_time('d M Y'); ?> | <?php the_time('h:i a'); ?> | Category: <?php the_category(', ') ?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php edit_post_link(); ?>
        <div class="entrybody">
          <?php the_content(__('Read more'));?>
    <?php			comments_popup_link( 'No comments ','1 comment ','% comments ',	'comments-link ','Comments are off for this post ');
    	<?php trackback_rdf(); ?>
      <?php comments_template(); // Get wp-comments.php template ?>
      <?php endwhile; else: ?>
        <?php _e('Sorry, no posts matched your criteria.'); ?>
      <?php endif; ?>
        <?php posts_nav_link(' — ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?>
Viewing 1 replies (of 1 total)
  • OH MY! Slap me upside the head….I found it, totally by accident. I completely forgot that I had enabled the DDAddSig plugin on this site, and THAT is what’s generating the “Written by” text. Now that I have wasted an hour or two hunting for ghosts….. 😛

Viewing 1 replies (of 1 total)
  • The topic ‘Post author does not show unless “first_name” is true’ is closed to new replies.