Support » Fixing WordPress » the_author template tag does not work on certain pages

  • 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:
    I’d like it to look like “”

    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; ?>
    <?php include(TEMPLATEPATH."/sidebar.php");?>
    <!-- The main column ends  -->
    <?php get_footer(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • It does not appear to work on your post pages either. Examine this page:

    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.

    hmmm Thanks for pointing it out!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘the_author template tag does not work on certain pages’ is closed to new replies.