the_author does not display
-
Hi
I’m trying to display info from the last 2 posts in my blog on a page outside of wordpress.
This is the code:
At the head of the page:
define(‘WP_USE_THEMES’, false);
require(‘/var/www/aletalking/wp-load.php’);
query_posts(‘showposts=2’);& where i want to display the info:
<?php while (have_posts()): the_post(); ?>
<?php the_title(); ?>
<?php the_date(); ?> by <?php the_author(); ?><?php the_excerpt(); ?>
<?php endwhile; ?>Everything displays as it should except the_author() – which is missing – is there something simple i’m missing? The author is set up correctly as it displays on the actual blog as it should
Any help would be greatly appreciated
Cheers
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘the_author does not display’ is closed to new replies.