WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Post author does not show unless "first_name" is true (2 posts)

  1. kalico
    Member
    Posted 6 years ago #

    http://www.birthjunkies.com

    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>
        <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 ');
    			edit_post_link(__('<strong>Edit</strong>'));?>
    
        </div>
        <!--
    	<?php trackback_rdf(); ?>
    	-->
      </div>
      <?php comments_template(); // Get wp-comments.php template ?>
      <?php endwhile; else: ?>
      <p>
        <?php _e('Sorry, no posts matched your criteria.'); ?>
      </p>
      <?php endif; ?>
      <p>
        <?php posts_nav_link(' — ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?>
      </p>
    </div>
  2. kalico
    Member
    Posted 6 years ago #

    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..... :P

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.