WordPress.org

Ready to get started?Download WordPress

Forums

the_author template tag does not work on certain pages (3 posts)

  1. starfield
    Member
    Posted 5 years ago #

    Hi,
    I've created a category-XX.php and placed it but my the_author tag does not seem to show. However on other pages it shows.

    check this out: http://beta.boontan.net/category/reviews/
    I'd like it to look like "http://beta.boontan.net/anime-review/"

    browse the other categories like Anime updates(under Navbar)and you can see the_author tag there.

    This is my code:

    <?php get_header();
    ?>
    
    <div id="content">
    
    		<div class="archive">
    			<p /><h2>Reviews</h2>
    			<?php $recent = new WP_Query("cat=17&showposts=-1&orderby=title&order=asc"); while($recent->have_posts()) : $recent->the_post();?>
    
    		<?php the_title(); ?> <a>"> - <?php the_author(); ?> </a>
    
    			<?php endwhile; ?>
    
    	</div>
    
    <?php include(TEMPLATEPATH."/sidebar.php");?>
    
    </div>
    
    <!-- The main column ends  -->
    
    <?php get_footer(); ?>
  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    It does not appear to work on your post pages either. Examine this page:
    http://beta.boontan.net/2008/08/01/air/

    At the bottom, it shows "Written by ยท Filed Under Reviews, Z.N Singer". I assume that is supposed to have the author there after the written by?

    The_author shows the display name of the user by default. Verify that the user has set their display name to something not blank in their profile.

  3. starfield
    Member
    Posted 5 years ago #

    hmmm Thanks for pointing it out!

    I will change it soon will let you know when I'm done.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags