Support » Fixing WordPress » the_author template tag does not work on certain pages
8 years, 7 months ago
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 $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; ?>
<!-- The main column ends -->
<?php get_footer(); ?>
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.